mirror of https://github.com/CGAL/cgal
Suppress again in the CMakeLists.txt as it concerns boost
This commit is contained in:
parent
f3c5d11884
commit
bef5c492ba
|
|
@ -10,6 +10,12 @@ find_package(CGAL QUIET COMPONENTS Core)
|
||||||
|
|
||||||
if ( CGAL_FOUND AND CGAL_Core_FOUND)
|
if ( CGAL_FOUND AND CGAL_Core_FOUND)
|
||||||
include(${CGAL_USE_FILE})
|
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
|
# create a target per cppfile
|
||||||
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
file(GLOB cppfiles RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue