aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorMike Toews <mwtoews@gmail.com>2018-09-11 23:07:32 +1200
committerMike Toews <mwtoews@gmail.com>2018-09-11 23:07:32 +1200
commit70866367bf356ab72d1222edbc0bc087d682b325 (patch)
tree756eba6ead20085c365a110ec16d4afd19a9e801 /CMakeLists.txt
parent8633749902c6d7729a95bd6cefffabde7036ee29 (diff)
downloadPROJ-70866367bf356ab72d1222edbc0bc087d682b325.tar.gz
PROJ-70866367bf356ab72d1222edbc0bc087d682b325.zip
Specify c++11 for Intel compilers
Also, workaround issue: CMake Error at test/unit/CMakeLists.txt:7 (string): string sub-command REGEX, mode REPLACE needs at least 6 arguments total to command.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4292c608..b100e62f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -41,8 +41,10 @@ endif()
if (CMAKE_C_COMPILER_ID STREQUAL "Intel")
if (MSVC)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /fp:precise")
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Qstd=c++11")
else ()
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fp-model precise")
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
endif ()
endif ()