Skip to content

Commit

Permalink
[cmake] enable exception handling on windows
Browse files Browse the repository at this point in the history
Needed to avoid build errors with boost exception and MSVC.
  • Loading branch information
fabiencastan committed Jul 16, 2019
1 parent ee16bc5 commit cdd97d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ if(CCTAG_ENABLE_SIMD_AVX2)
message(STATUS "CCTAG: AVX2 optimizations enabled.")
endif()

if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
add_definitions(/EHsc) # Enable Exception Handling
endif()

# load local machine config <hostname>.cmake
site_name(MACHINE_NAME)

Expand Down

0 comments on commit cdd97d2

Please sign in to comment.