summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-03-02 16:55:22 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-03-02 16:55:22 +0100
commit6bcbfa36ff9b4d5efaefe0520a7b7ab5a603dfa9 (patch)
tree3f41b5ad035d1ca1dffc384d11bdcca2e14d7ead
parent19d2b71aa8f385fee0c4cd3aa9fdf4f2f3279749 (diff)
cmake: use `target_compile_definitions()'
-rw-r--r--cmake/opentrack-boilerplate.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/opentrack-boilerplate.cmake b/cmake/opentrack-boilerplate.cmake
index 748a422f..d581aebd 100644
--- a/cmake/opentrack-boilerplate.cmake
+++ b/cmake/opentrack-boilerplate.cmake
@@ -183,13 +183,13 @@ function(otr_module n_)
string(REPLACE "-" "_" build-n ${n_})
string(TOUPPER "${build-n}" build-n)
- set_property(TARGET ${n} PROPERTY DEFINE_SYMBOL "BUILD_${build-n}")
+ target_compile_definitions(${n} PRIVATE "BUILD_${build-n}")
get_property(ident GLOBAL PROPERTY opentrack-ident)
if (".${ident}" STREQUAL ".")
message(FATAL_ERROR "must set global property `opentrack-ident' in `opentrack-variant.cmake'")
endif()
- set_property(TARGET ${n} APPEND PROPERTY COMPILE_DEFINITIONS "OPENTRACK_ORG=\"${ident}\"")
+ target_compile_definitions(${n} PRIVATE OPENTRACK_ORG=\"${ident}\")
if(arg_STATIC)
set(arg_NO-INSTALL TRUE)