OLD | NEW |
1 diff --git a/CMakeLists.txt b/CMakeLists.txt | 1 diff --git a/CMakeLists.txt b/CMakeLists.txt |
2 --- a/CMakeLists.txt | 2 --- a/CMakeLists.txt |
3 +++ b/CMakeLists.txt | 3 +++ b/CMakeLists.txt |
4 @@ -161,7 +161,9 @@ if(NOT MSVC) | 4 @@ -161,7 +161,9 @@ if(NOT MSVC) |
5 if(COMPILER_SUPPORT_STRICTANSI) | 5 if(COMPILER_SUPPORT_STRICTANSI) |
6 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -strict-ansi") | 6 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -strict-ansi") |
7 else() | 7 else() |
8 - ei_add_cxx_compiler_flag("-ansi") | 8 - ei_add_cxx_compiler_flag("-ansi") |
9 + if(NOT NACL) | 9 + if(NOT NACL) |
10 + ei_add_cxx_compiler_flag("-ansi") | 10 + ei_add_cxx_compiler_flag("-ansi") |
11 + endif() | 11 + endif() |
12 endif() | 12 endif() |
13 | 13 |
14 set(CMAKE_REQUIRED_FLAGS "") | 14 set(CMAKE_REQUIRED_FLAGS "") |
| 15 diff --git a/cmake/EigenTesting.cmake b/cmake/EigenTesting.cmake |
| 16 --- a/cmake/EigenTesting.cmake |
| 17 +++ b/cmake/EigenTesting.cmake |
| 18 @@ -324,7 +324,7 @@ macro(ei_get_compilerver VAR) |
| 19 # on all other system we rely on ${CMAKE_CXX_COMPILER} |
| 20 # supporting a "--version" or "/version" flag |
| 21 |
| 22 - if(WIN32 AND ${CMAKE_CXX_COMPILER_ID} EQUAL "Intel") |
| 23 + if(WIN32 AND "${CMAKE_CXX_COMPILER_ID}" EQUAL "Intel") |
| 24 set(EIGEN_CXX_FLAG_VERSION "/version") |
| 25 else() |
| 26 set(EIGEN_CXX_FLAG_VERSION "--version") |
OLD | NEW |