Skip to content

Commit

Permalink
Fix HAS_EXCEPTION on Windows. (#743)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjp41 authored Feb 5, 2025
1 parent b3efd49 commit a3fe420
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 @@ -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})
Expand Down

0 comments on commit a3fe420

Please sign in to comment.