Skip to content

Commit

Permalink
fix compilation under macOS with "Clang" instead of "AppleClang"
Browse files Browse the repository at this point in the history
  • Loading branch information
christianrauch committed Jan 28, 2024
1 parent caa865a commit 590e025
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wno-shift-negative-value)
endif()

if(CMAKE_C_COMPILER_ID MATCHES "Clang" AND NOT CMAKE_C_COMPILER_ID MATCHES "AppleClang" AND NOT CMAKE_C_SIMULATE_ID MATCHES "MSVC")
if(CMAKE_C_COMPILER_ID MATCHES "Clang" AND NOT APPLE AND NOT CMAKE_C_SIMULATE_ID MATCHES "MSVC")
add_link_options("-Wl,-z,relro,-z,now,-z,defs")
endif()

Expand Down

0 comments on commit 590e025

Please sign in to comment.