From bef5c492ba53319f59e20dfc73edb82147c20faf Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Tue, 19 Feb 2019 10:53:16 +0100 Subject: [PATCH] Suppress again in the CMakeLists.txt as it concerns boost --- Cone_spanners_2/examples/Cone_spanners_2/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Cone_spanners_2/examples/Cone_spanners_2/CMakeLists.txt b/Cone_spanners_2/examples/Cone_spanners_2/CMakeLists.txt index 2769dd35b4e..12ba2f77826 100644 --- a/Cone_spanners_2/examples/Cone_spanners_2/CMakeLists.txt +++ b/Cone_spanners_2/examples/Cone_spanners_2/CMakeLists.txt @@ -10,6 +10,12 @@ find_package(CGAL QUIET COMPONENTS Core) if ( CGAL_FOUND AND CGAL_Core_FOUND) include(${CGAL_USE_FILE}) + if (MSVC) + # Turn off a boost related warning that appears with VC2015 + # boost_1_65_1\boost\graph\named_function_params.hpp(240) : + # warning C4172: returning address of local variable or temporary + SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4172") + endif() # create a target per cppfile file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)