From d837a07884d8b8d25249730ca69444bf2a351543 Mon Sep 17 00:00:00 2001 From: zhupengfei Date: Tue, 23 Jun 2020 22:43:42 +0800 Subject: [PATCH] Use the older command --- src/frontend/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/CMakeLists.txt b/src/frontend/CMakeLists.txt index ffcdf22..d9f7e17 100644 --- a/src/frontend/CMakeLists.txt +++ b/src/frontend/CMakeLists.txt @@ -49,7 +49,7 @@ elseif(WIN32) endif() elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux") # In Ubuntu, the executable would be recognized as a shared library otherwise. - target_link_options(threeSD PRIVATE "-no-pie") + set_target_properties(threeSD PROPERTIES LINK_FLAGS "-no-pie") endif() target_compile_definitions(threeSD PRIVATE