Skip to content

Commit

Permalink
cmake warning handling for msvc
Browse files Browse the repository at this point in the history
  • Loading branch information
kernelwernel committed Oct 20, 2023
1 parent 5bc119c commit 0b3a508
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 @@ -14,7 +14,7 @@ set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_EXE_LINKER_FLAGS "-lstdc++ -lm")

if (MSVC)
set(CMAKE_CXX_FLAGS "/W4 /std:c++20")
set(CMAKE_CXX_FLAGS "/W4 /std:c++20 /EHsc")
else()
set(CMAKE_CXX_FLAGS "-Wextra -Wall -Wextra -Wconversion -Wdouble-promotion -Wno-unused-parameter -Wno-unused-function -Wno-sign-conversion")
endif()
Expand Down

0 comments on commit 0b3a508

Please sign in to comment.