From 304130d564d159521e763ec7a1a321664caba23a Mon Sep 17 00:00:00 2001 From: falkTX Date: Thu, 25 May 2023 17:24:30 +0200 Subject: [PATCH] cmake: fix argument order Signed-off-by: falkTX --- cmake/CMakeLists.txt | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 752fa9770..1e0a5521c 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -115,18 +115,16 @@ function(set_common_target_properties TARGET) $<$:/wd4244 /wd4267 /wd4273> ) - if(CMAKE_C_COMPILER_ID MATCHES "GNU") - target_link_options(${TARGET} - PRIVATE - -Wl,--no-undefined - ) - endif() + target_link_options(${TARGET} + PRIVATE + $<$:-Wl,--no-undefined> + ) set_property(TARGET ${TARGET} PROPERTY POSITION_INDEPENDENT_CODE ON) if(APPLE) - set_property(TARGET ${TARGET} PROPERTY APPEND OSX_ARCHITECTURES arm64) - set_property(TARGET ${TARGET} PROPERTY APPEND OSX_ARCHITECTURES x86_64) + set_property(TARGET ${TARGET} APPEND PROPERTY OSX_ARCHITECTURES arm64) + set_property(TARGET ${TARGET} APPEND PROPERTY OSX_ARCHITECTURES x86_64) endif() endfunction()