From 05ef192ebd70dab5c66a46d5c3da62d763ed22e5 Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Mon, 20 Dec 2021 11:39:39 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA?= =?UTF-8?q?=D0=B0=20=D1=81=D1=83=D1=89=D0=B5=D1=81=D1=82=D0=B2=D0=BE=D0=B2?= =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D1=8F=20=D1=86=D0=B5=D0=BB=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MyxCMake/modules/MyxCMakeCommonTargetProperties.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/MyxCMake/modules/MyxCMakeCommonTargetProperties.cmake b/MyxCMake/modules/MyxCMakeCommonTargetProperties.cmake index 70210fb..631b98d 100644 --- a/MyxCMake/modules/MyxCMakeCommonTargetProperties.cmake +++ b/MyxCMake/modules/MyxCMakeCommonTargetProperties.cmake @@ -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)