summaryrefslogtreecommitdiffhomepage
path: root/cmake/opentrack-version.cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-02-10 02:06:27 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-02-10 02:06:27 +0100
commit94e6e5be8281cb759a06a3b18f4f25a1c87142e2 (patch)
treeba00eca761beb0064c066071d24b027bd7c93211 /cmake/opentrack-version.cmake
parent3c702e840b23aa350412d53437b34fee7516e00e (diff)
cmake: use target_{compile,link}_options
Diffstat (limited to 'cmake/opentrack-version.cmake')
-rw-r--r--cmake/opentrack-version.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/opentrack-version.cmake b/cmake/opentrack-version.cmake
index ca6c70f6..0ff516f2 100644
--- a/cmake/opentrack-version.cmake
+++ b/cmake/opentrack-version.cmake
@@ -32,5 +32,5 @@ endif()
add_library(opentrack-version STATIC "${file}")
if(NOT MSVC)
- set_property(TARGET opentrack-version APPEND_STRING PROPERTY COMPILE_FLAGS "-fno-lto ")
+ target_compile_options(opentrack-version PRIVATE -fno-lto)
endif()