summaryrefslogtreecommitdiff
path: root/CompileFlags.cmake
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2014-04-11 18:27:01 +0200
committerRolf Eike Beer <eike@sf-mail.de>2014-04-14 18:17:18 +0200
commit3a71d34cf3a10ee215ae3899acafd29551ba6e7e (patch)
tree93742fd3f43657dedf1d5420d3bb72e525a79ff5 /CompileFlags.cmake
parentb0b4b4602fd5f8508d6fcbb9ea3236585e6368e2 (diff)
downloadcmake-3a71d34cf3a10ee215ae3899acafd29551ba6e7e.tar.gz
Use CMAKE_SYSTEM_NAME instead of CMAKE_SYSTEM where sufficient
Diffstat (limited to 'CompileFlags.cmake')
-rw-r--r--CompileFlags.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/CompileFlags.cmake b/CompileFlags.cmake
index a6ff8e046a..5f6a0998fe 100644
--- a/CompileFlags.cmake
+++ b/CompileFlags.cmake
@@ -34,13 +34,13 @@ else()
endif()
#silence duplicate symbol warnings on AIX
-if(CMAKE_SYSTEM MATCHES "AIX")
+if(CMAKE_SYSTEM_NAME MATCHES "AIX")
if(NOT CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -bhalt:5 ")
endif()
endif()
-if(CMAKE_SYSTEM MATCHES "IRIX")
+if(CMAKE_SYSTEM_NAME MATCHES "IRIX")
if(NOT CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wl,-woff84 -no_auto_include")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-woff15")