Suppress again in the CMakeLists.txt as it concerns boost

This commit is contained in:
Andreas Fabri 2019-02-19 10:53:16 +01:00
parent f3c5d11884
commit bef5c492ba
1 changed files with 6 additions and 0 deletions

View File

@ -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)