diff options
| author | Mike Toews <mwtoews@gmail.com> | 2018-09-11 23:07:32 +1200 |
|---|---|---|
| committer | Mike Toews <mwtoews@gmail.com> | 2018-09-11 23:07:32 +1200 |
| commit | 70866367bf356ab72d1222edbc0bc087d682b325 (patch) | |
| tree | 756eba6ead20085c365a110ec16d4afd19a9e801 /CMakeLists.txt | |
| parent | 8633749902c6d7729a95bd6cefffabde7036ee29 (diff) | |
| download | PROJ-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.txt | 2 |
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 () |
