From ba11fbcb34fa8e8ed503635f8ff8ab5a4f4d6532 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Tue, 19 Feb 2019 15:48:48 +0100 Subject: [PATCH] Suppress warning in CMakeList.txt --- Distance_3/test/Distance_3/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Distance_3/test/Distance_3/CMakeLists.txt b/Distance_3/test/Distance_3/CMakeLists.txt index b72be7f7218..ce608ba48c7 100644 --- a/Distance_3/test/Distance_3/CMakeLists.txt +++ b/Distance_3/test/Distance_3/CMakeLists.txt @@ -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})