Skip to content

Commit

Permalink
add VS compiler option for correct building with boost
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Commandeur committed May 9, 2019
1 parent 43043b0 commit 18855b0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ if ( COMMAND cmake_policy )
cmake_policy( SET CMP0003 NEW )
endif()

if (MSVC)
add_definitions("/EHsc")
endif(MSVC)

# CGAL
find_package( CGAL QUIET COMPONENTS core )
if ( CGAL_FOUND )
Expand Down Expand Up @@ -57,6 +61,6 @@ add_executable(val3dity ${SRC_FILES})

# add_to_cached_list( CGAL_EXECUTABLE_TARGETS val3dity )

target_link_libraries(val3dity ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} ${GEOS_LIBRARY} ${Boost_FILESYSTEM_LIBRARY} thirdparty)
target_link_libraries(val3dity ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} ${GEOS_LIBRARY} ${Boost_SYSTEM_LIBRARY} ${Boost_FILESYSTEM_LIBRARY} thirdparty)

install(TARGETS val3dity DESTINATION bin)

0 comments on commit 18855b0

Please sign in to comment.