From 94e6e5be8281cb759a06a3b18f4f25a1c87142e2 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 10 Feb 2019 02:06:27 +0100 Subject: cmake: use target_{compile,link}_options --- cmake/opentrack-version.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmake/opentrack-version.cmake') 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() -- cgit v1.2.3