From dcb317150e34f8e5706c89d7774353ba1e8dd83e Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 19 Jun 2017 17:22:28 +0200 Subject: cmake: use DEFINE_SYMBOL target property rather than NIH --- cmake/opentrack-boilerplate.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/opentrack-boilerplate.cmake b/cmake/opentrack-boilerplate.cmake index d9b011ee..9acf88db 100644 --- a/cmake/opentrack-boilerplate.cmake +++ b/cmake/opentrack-boilerplate.cmake @@ -182,7 +182,7 @@ function(otr_module n_) string(REPLACE "-" "_" build-n ${n_}) string(TOUPPER "${build-n}" build-n) - target_compile_definitions(${n} PRIVATE "BUILD_${build-n}") + set_property(TARGET ${n} PROPERTY DEFINE_SYMBOL "BUILD_${build-n}") if(arg_STATIC) set(arg_NO-INSTALL TRUE) -- cgit v1.2.3