diff options
| -rw-r--r-- | CMakeLists.txt | 4 | ||||
| -rw-r--r-- | CMakeScripts/DefineDependsandFlags.cmake | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c692f40be..22cb6410a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,6 +13,10 @@ message("Binary Dir: ${CMAKE_CURRENT_BINARY_DIR}") # ----------------------------------------------------------------------------- # CMake Configuration # ----------------------------------------------------------------------------- +# Used in cmake 3.1+ +set(CMAKE_CXX_STANDARD 11) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMakeScripts/Modules") # avoid having empty buildtype diff --git a/CMakeScripts/DefineDependsandFlags.cmake b/CMakeScripts/DefineDependsandFlags.cmake index 897aafb57..53dd7fe94 100644 --- a/CMakeScripts/DefineDependsandFlags.cmake +++ b/CMakeScripts/DefineDependsandFlags.cmake @@ -14,6 +14,8 @@ list(APPEND INKSCAPE_INCS ${PROJECT_SOURCE_DIR} # Add C++11 standard compliance # TODO: Add a proper check for compiler compliance here # ---------------------------------------------------------------------------- +# this can be removed when cmake minimum is 3.1 +# as replaced with CMAKE_CXX_STANDARD in main CMakeLists.txt list(APPEND INKSCAPE_CXX_FLAGS "-std=c++11") |
