Skip to content

Commit

Permalink
Require standards-conforming mode on MSVC
Browse files Browse the repository at this point in the history
ChangeLog:

	* CMakeLists.txt: Compile with /permissive- on MSVC.
  • Loading branch information
mattkretz committed Sep 27, 2024
1 parent 66858d6 commit 316c49d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ set(GCC_WARNINGS ${CLANG_WARNINGS})

if(MSVC)
set(PROJECT_WARNINGS_CXX ${MSVC_WARNINGS})
target_compile_options(vir-simd INTERFACE /permissive-)
elseif(CMAKE_CXX_COMPILER_ID MATCHES ".*Clang")
set(PROJECT_WARNINGS_CXX ${CLANG_WARNINGS})
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
Expand Down

0 comments on commit 316c49d

Please sign in to comment.