Skip to content

Commit

Permalink
Ensure microsoft extensions are added for VS builds
Browse files Browse the repository at this point in the history
To overcome the issue where some MS header files include C++
style comments - true for Windows Server 2019 sdk
  • Loading branch information
john-forrest committed Oct 4, 2024
1 parent 9dae6c6 commit 9a331c4
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 @@ -221,7 +221,7 @@ if(MSVC)
add_compile_options("$<$<CONFIG:Release>:/W1;/Ox>")
add_compile_options("$<$<CONFIG:Debug>:/W4;/DDEBUG>")
if(NOT CLANG)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /MP")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /MP /Ze")
endif()
else()
if(CMAKE_BUILD_TYPE MATCHES "[Dd][Ee][Bb][Uu][Gg]")
Expand Down

0 comments on commit 9a331c4

Please sign in to comment.