Skip to content

Commit

Permalink
Update SetCommonCompileOptions.cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
odygrd committed Jun 8, 2024
1 parent a3c8ffe commit 9cd6909
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/SetCommonCompileOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ function(set_common_compile_options target_name)

# Additional MSVC specific options
if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
target_compile_definitions(${target_name} ${COMPILE_OPTIONS_VISIBILITY} _DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR)

if (NOT QUILL_NO_EXCEPTIONS)
target_compile_options(${target_name} ${COMPILE_OPTIONS_VISIBILITY} /EHsc)
endif ()
endif ()
endfunction()
endfunction()

0 comments on commit 9cd6909

Please sign in to comment.