Skip to content

Commit

Permalink
fix msvc compiler flags for no exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
odygrd committed Oct 10, 2024
1 parent 5cc129f commit 69749d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/QuillUtils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function(set_common_compile_options target_name)
target_compile_options(${target_name} ${COMPILE_OPTIONS_VISIBILITY}
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>,$<CXX_COMPILER_ID:GNU>>:
-fno-exceptions -fno-rtti>
$<$<CXX_COMPILER_ID:MSVC>:/GR- /EHs-c->)
$<$<CXX_COMPILER_ID:MSVC>:/GR- /EHs-c- /D_HAS_EXCEPTIONS=0>)
else ()
# Additional MSVC specific options
if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
Expand Down

0 comments on commit 69749d3

Please sign in to comment.