summaryrefslogtreecommitdiffstats
path: root/CMakeScripts/ConfigEnv.cmake
diff options
context:
space:
mode:
authorPatrick Storz <eduard.braun2@gmx.de>2019-03-31 20:25:19 +0000
committerPatrick Storz <eduard.braun2@gmx.de>2019-03-31 20:25:19 +0000
commitc523de13b39a2bb128569ba5816af06e52d368d7 (patch)
treec9c675092c9875b4e9c88e19ffec706ed8ecf06a /CMakeScripts/ConfigEnv.cmake
parentCMake: Avoid defining _FORTIFY_SOURCE twice in separate places (diff)
downloadinkscape-c523de13b39a2bb128569ba5816af06e52d368d7.tar.gz
inkscape-c523de13b39a2bb128569ba5816af06e52d368d7.zip
CMake: Use CMAKE_CXX_STANDARD and don't set it in three places
This requires bumping cmake version requirement to 3.1 (which should long be available on supported platforms, though) TODO: We actually depend on GNU compiler extensions right now (i.e. *don't* build with -std=c++11 but require -std=gnu++11)
Diffstat (limited to 'CMakeScripts/ConfigEnv.cmake')
-rw-r--r--CMakeScripts/ConfigEnv.cmake13
1 files changed, 6 insertions, 7 deletions
diff --git a/CMakeScripts/ConfigEnv.cmake b/CMakeScripts/ConfigEnv.cmake
index 29f2f5df8..b8809428c 100644
--- a/CMakeScripts/ConfigEnv.cmake
+++ b/CMakeScripts/ConfigEnv.cmake
@@ -5,20 +5,19 @@ if(WIN32)
message("-- Windows build detected, setting default features")
include(CMakeScripts/ConfigEnvMinGW.cmake)
-
+
set(CMAKE_C_COMPILER "${MINGW_BIN}/gcc.exe")
set(CMAKE_CXX_COMPILER "${MINGW_BIN}/g++.exe")
- set(CMAKE_CXX_STANDARD 11)
-
+
# Setup Windows resource files compiler.
set(CMAKE_RC_COMPILER "${MINGW_BIN}/windres.exe")
set(CMAKE_RC_COMPILER_INIT windres)
enable_language(RC)
set(CMAKE_RC_COMPILE_OBJECT "<CMAKE_RC_COMPILER> -O coff -i <SOURCE> -o <OBJECT>")
-
+
# These options are required for having i18n support on Windows.
option(ENABLE_NLS "Compile with Native Language Support (using gettext)" ON)
-
+
# Does not compile on Windows with these options.
option(ENABLE_BINRELOC "Use AutoPackage" OFF)
option(WITH_JEMALLOC "Compile with JEMALLOC support" OFF)
@@ -26,7 +25,7 @@ endif()
if(APPLE)
message("-- Mac OS X build detected, setting default features")
-
+
# prefer macports and/or user-installed libraries over system ones
#LIST(APPEND CMAKE_PREFIX_PATH /opt/local /usr/local)
set(CMAKE_FIND_FRAMEWORK "LAST")
@@ -35,7 +34,7 @@ if(APPLE)
if(DEFINED ENV{CMAKE_PREFIX_PATH})
message("CMAKE_PREFIX_PATH: $ENV{CMAKE_PREFIX_PATH}")
endif()
-
+
if(DEFINED ENV{GTKMM_BASEPATH})
message("GTKMM_BASEPATH: $ENV{GTKMM_BASEPATH}")
endif()