| From 39ef59ddeb7679c71274b1da3faadd395b650c73 Mon Sep 17 00:00:00 2001 |
| From: Adam Reichold <adam.reichold@t-online.de> |
| Date: Sun, 29 Nov 2015 11:48:30 +0100 |
| Subject: [PATCH] Build with '-std=c++11' if libsigc++ version 2.5.1 is used as |
| it does require it. |
| |
| --- |
| CMakeLists.txt | 4 ++-- |
| 1 file changed, 2 insertions(+), 2 deletions(-) |
| |
| diff --git a/CMakeLists.txt b/CMakeLists.txt |
| index dd5fcbc..6153484 100644 |
| --- a/CMakeLists.txt |
| +++ b/CMakeLists.txt |
| @@ -278,10 +278,10 @@ if (OPTION_OMP) |
| endif (OPENMP_FOUND) |
| endif (OPTION_OMP) |
| |
| -if(USE_EXPERIMENTAL_LANG_VERSIONS) |
| +if(USE_EXPERIMENTAL_LANG_VERSIONS OR NOT (SIGC_VERSION VERSION_LESS 2.5.1)) |
| SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu1x") |
| SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++0x") |
| -endif (USE_EXPERIMENTAL_LANG_VERSIONS) |
| +endif () |
| |
| # find out whether we are building out of source |
| get_filename_component(ABS_SOURCE_DIR "${PROJECT_SOURCE_DIR}" ABSOLUTE) |