Проверка существования цели
This commit is contained in:
parent
fa8fdfac66
commit
05ef192ebd
@ -1,4 +1,8 @@
|
||||
function(myx_cmake_common_target_properties target)
|
||||
if(NOT TARGET ${target})
|
||||
message(FATAL_ERROR "MyxCMake: Target ${target} does not exists.")
|
||||
return()
|
||||
endif()
|
||||
get_target_property(_target_type ${target} TYPE)
|
||||
|
||||
set(__visibility PUBLIC)
|
||||
|
Loading…
Reference in New Issue
Block a user