diff options
Diffstat (limited to 'src/Bipartite_graphs_matching')
-rw-r--r-- | src/Bipartite_graphs_matching/example/CMakeLists.txt | 9 | ||||
-rw-r--r-- | src/Bipartite_graphs_matching/test/CMakeLists.txt | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/src/Bipartite_graphs_matching/example/CMakeLists.txt b/src/Bipartite_graphs_matching/example/CMakeLists.txt index aaf32abd..4e8766cc 100644 --- a/src/Bipartite_graphs_matching/example/CMakeLists.txt +++ b/src/Bipartite_graphs_matching/example/CMakeLists.txt @@ -8,6 +8,15 @@ if(CGAL_FOUND) message(STATUS "CGAL version: ${CGAL_VERSION}.") include( ${CGAL_USE_FILE} ) + + if(NOT MSVC) + include(CheckCXXCompilerFlag) + CHECK_CXX_COMPILER_FLAG(-std=c++11 COMPILER_SUPPORTS_CXX11) + if(COMPILER_SUPPORTS_CXX11) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") + endif() + endif() + # - End of workaround find_package(Eigen3 3.1.0) if (EIGEN3_FOUND) diff --git a/src/Bipartite_graphs_matching/test/CMakeLists.txt b/src/Bipartite_graphs_matching/test/CMakeLists.txt index abf18b1b..ab0461cc 100644 --- a/src/Bipartite_graphs_matching/test/CMakeLists.txt +++ b/src/Bipartite_graphs_matching/test/CMakeLists.txt @@ -9,6 +9,15 @@ if(CGAL_FOUND) message(STATUS "CGAL version: ${CGAL_VERSION}.") include( ${CGAL_USE_FILE} ) + + if(NOT MSVC) + include(CheckCXXCompilerFlag) + CHECK_CXX_COMPILER_FLAG(-std=c++11 COMPILER_SUPPORTS_CXX11) + if(COMPILER_SUPPORTS_CXX11) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") + endif() + endif() + # - End of workaround find_package(Eigen3 3.1.0) if (EIGEN3_FOUND) |