diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-02-10 02:06:27 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-02-10 02:06:27 +0100 |
commit | 94e6e5be8281cb759a06a3b18f4f25a1c87142e2 (patch) | |
tree | ba00eca761beb0064c066071d24b027bd7c93211 /cmake/opentrack-boilerplate.cmake | |
parent | 3c702e840b23aa350412d53437b34fee7516e00e (diff) |
cmake: use target_{compile,link}_options
Diffstat (limited to 'cmake/opentrack-boilerplate.cmake')
-rw-r--r-- | cmake/opentrack-boilerplate.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/opentrack-boilerplate.cmake b/cmake/opentrack-boilerplate.cmake index d86dde11..683f63a4 100644 --- a/cmake/opentrack-boilerplate.cmake +++ b/cmake/opentrack-boilerplate.cmake @@ -217,7 +217,7 @@ function(otr_module n_) header-hygiene ) foreach(k ${opts}) - set_property(TARGET "${n}" APPEND_STRING PROPERTY COMPILE_FLAGS "-Wno-${k} ") + target_compile_options(${n} PRIVATE "-Wno-${k}") endforeach() endif() |