Fix HAS_EXCEPTION on Windows. (#743)
This commit is contained in:
committed by
GitHub
parent
b3efd49c9a
commit
a3fe420af2
@@ -498,7 +498,7 @@ endif()
|
||||
target_compile_definitions(${name} PRIVATE "SNMALLOC_USE_${SNMALLOC_CLEANUP}")
|
||||
|
||||
if(MSVC)
|
||||
target_compile_definitions(${name} INTERFACE -D_HAS_EXCEPTIONS=0)
|
||||
target_compile_definitions(${name} PRIVATE -D_HAS_EXCEPTIONS=0)
|
||||
endif()
|
||||
|
||||
add_warning_flags(${name})
|
||||
|
||||
Reference in New Issue
Block a user