Browse Source

cmake: fix argument order

Signed-off-by: falkTX <falktx@falktx.com>
pull/1780/head
falkTX 1 year ago
parent
commit
304130d564
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 6 additions and 8 deletions
  1. +6
    -8
      cmake/CMakeLists.txt

+ 6
- 8
cmake/CMakeLists.txt View File

@@ -115,18 +115,16 @@ function(set_common_target_properties TARGET)
$<$<BOOL:${MSVC}>:/wd4244 /wd4267 /wd4273>
)

if(CMAKE_C_COMPILER_ID MATCHES "GNU")
target_link_options(${TARGET}
PRIVATE
-Wl,--no-undefined
)
endif()
target_link_options(${TARGET}
PRIVATE
$<$<C_COMPILER_ID:GNU>:-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()



Loading…
Cancel
Save