From f2247d222f5cbf1f01f5677c58cab31d3734e82f Mon Sep 17 00:00:00 2001 From: Mark Pictor Date: Sun, 2 Aug 2015 15:58:04 -0400 Subject: [PATCH] use COMPILE_DEFINITIONS property for definitions --- src/cllazyfile/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cllazyfile/CMakeLists.txt b/src/cllazyfile/CMakeLists.txt index 8aee53a7..c999d25a 100644 --- a/src/cllazyfile/CMakeLists.txt +++ b/src/cllazyfile/CMakeLists.txt @@ -35,9 +35,9 @@ include_directories( SC_ADDLIB(steplazyfile "${clLazyFile_SRCS};${clLazyFile_HDRS}" "stepcore;stepdai;steputils;base") SC_ADDEXEC(lazy_test "lazy_test.cc" "steplazyfile;stepeditor" ) -set_target_properties(lazy_test PROPERTIES COMPILE_FLAGS "-DNO_REGISTRY" ) +set_property(TARGET lazy_test APPEND PROPERTY COMPILE_DEFINITIONS "NO_REGISTRY") if(TARGET lazy_test-static) - set_target_properties(lazy_test-static PROPERTIES COMPILE_FLAGS "-DNO_REGISTRY" ) + set_property(TARGET lazy_test-static APPEND PROPERTY COMPILE_DEFINITIONS "NO_REGISTRY") endif(TARGET lazy_test-static) install(FILES ${SC_CLLAZYFILE_HDRS}