Use the older command

This commit is contained in:
zhupengfei
2020-06-23 22:43:42 +08:00
parent 877c4724d8
commit d837a07884
+1 -1
View File
@@ -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