From 3f9a5fe6e952911110497968daeb276eb8d798ea Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Wed, 17 May 2017 18:42:15 +0200 Subject: Testing correctly a property Change-Id: I86259e19ec58df81591cd2491ce560ce932b5406 Signed-off-by: Romain Forlot --- reference/etc/macros.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'reference') diff --git a/reference/etc/macros.cmake b/reference/etc/macros.cmake index da991db..18af27e 100644 --- a/reference/etc/macros.cmake +++ b/reference/etc/macros.cmake @@ -251,8 +251,9 @@ endif() # Print developer helper message when build is done # ------------------------------------------------------- macro(project_closing_msg) + get_property(PROJECT_TARGETS_SET GLOBAL PROPERTY PROJECT_TARGETS SET) get_property(PROJECT_TARGETS GLOBAL PROPERTY PROJECT_TARGETS) - if(CLOSING_MESSAGE AND ${PROJECT_TARGETS}) + if(CLOSING_MESSAGE AND ${PROJECT_TARGETS_SET}) add_custom_target(${PROJECT_NAME}_build_done ALL COMMAND ${CMAKE_COMMAND} -E cmake_echo_color --cyan "++ ${CLOSING_MESSAGE}" ) -- cgit 1.2.3-korg