Suppress warning in CMakeList.txt

This commit is contained in:
Andreas Fabri 2019-02-19 15:48:48 +01:00
parent 803066774d
commit ba11fbcb34
1 changed files with 7 additions and 0 deletions

View File

@ -10,6 +10,13 @@ find_package(CGAL QUIET)
if ( CGAL_FOUND )
if (MSVC)
# Turn off a VC++ warning on a potential division by zero
# in Cartesian_kernel/include/CGAL/constructions/kernel_ftC3.h
# where CGAL_assume() does not help
SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4723")
endif()
# create a target per cppfile
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
foreach(cppfile ${cppfiles})