Skip to content

Commit

Permalink
ignore '-z' on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
christianrauch committed Jan 21, 2024
1 parent ae20ab3 commit 3efecfd
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 @@ -43,7 +43,7 @@ if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall -Wextra -Werror)
# add_compile_options(-Wpedantic)
add_compile_options(-Wno-shift-negative-value)
if(NOT CMAKE_C_COMPILER_ID MATCHES "AppleClang")
if(NOT CMAKE_C_COMPILER_ID MATCHES "AppleClang" OR CMAKE_C_SIMULATE_ID MATCHES "MSVC")
add_link_options("-Wl,-z,relro,-z,now,-z,defs")
endif()
endif()
Expand Down

0 comments on commit 3efecfd

Please sign in to comment.