summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeBackwardCompatibilityCXX.cmake
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2014-04-11 16:27:01 (GMT)
committerRolf Eike Beer <eike@sf-mail.de>2014-04-14 16:17:18 (GMT)
commit3a71d34cf3a10ee215ae3899acafd29551ba6e7e (patch)
tree93742fd3f43657dedf1d5420d3bb72e525a79ff5 /Modules/CMakeBackwardCompatibilityCXX.cmake
parentb0b4b4602fd5f8508d6fcbb9ea3236585e6368e2 (diff)
downloadCMake-3a71d34cf3a10ee215ae3899acafd29551ba6e7e.zip
CMake-3a71d34cf3a10ee215ae3899acafd29551ba6e7e.tar.gz
CMake-3a71d34cf3a10ee215ae3899acafd29551ba6e7e.tar.bz2
Use CMAKE_SYSTEM_NAME instead of CMAKE_SYSTEM where sufficient
Diffstat (limited to 'Modules/CMakeBackwardCompatibilityCXX.cmake')
-rw-r--r--Modules/CMakeBackwardCompatibilityCXX.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/CMakeBackwardCompatibilityCXX.cmake b/Modules/CMakeBackwardCompatibilityCXX.cmake
index a3da2d6..94a94ee 100644
--- a/Modules/CMakeBackwardCompatibilityCXX.cmake
+++ b/Modules/CMakeBackwardCompatibilityCXX.cmake
@@ -31,10 +31,10 @@ if(NOT CMAKE_SKIP_COMPATIBILITY_TESTS)
if(NOT CMAKE_COMPILER_IS_GNUCXX)
include(TestCXXAcceptsFlag)
set(CMAKE_TRY_ANSI_CXX_FLAGS "")
- if(CMAKE_SYSTEM MATCHES "IRIX")
+ if(CMAKE_SYSTEM_NAME MATCHES "IRIX")
set(CMAKE_TRY_ANSI_CXX_FLAGS "-LANG:std")
endif()
- if(CMAKE_SYSTEM MATCHES "OSF")
+ if(CMAKE_SYSTEM_NAME MATCHES "OSF")
set(CMAKE_TRY_ANSI_CXX_FLAGS "-std strict_ansi -nopure_cname")
endif()
# if CMAKE_TRY_ANSI_CXX_FLAGS has something in it, see