Проверка существования цели

This commit is contained in:
Andrei Astafev 2021-12-20 11:39:39 +03:00
parent fa8fdfac66
commit 05ef192ebd

View File

@ -1,4 +1,8 @@
function(myx_cmake_common_target_properties target) 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) get_target_property(_target_type ${target} TYPE)
set(__visibility PUBLIC) set(__visibility PUBLIC)