diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-05-24 12:33:05 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-05-24 12:33:05 (GMT) |
commit | e10e3bc86edd3b319f036a5e33a428863d0e91f8 (patch) | |
tree | 172132fed15e8444e0366222166dcf8732551c4f /Modules/TestBigEndian.cmake | |
parent | 1835c327fffd646b829e25f44694b93bb25f06f0 (diff) | |
download | CMake-e10e3bc86edd3b319f036a5e33a428863d0e91f8.zip CMake-e10e3bc86edd3b319f036a5e33a428863d0e91f8.tar.gz CMake-e10e3bc86edd3b319f036a5e33a428863d0e91f8.tar.bz2 |
ENH: add compiler id for IAR compiler (http://www.iar.com/)
ENH: don't run endian test again if the variable is already set
Alex
Diffstat (limited to 'Modules/TestBigEndian.cmake')
-rw-r--r-- | Modules/TestBigEndian.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/TestBigEndian.cmake b/Modules/TestBigEndian.cmake index 021b9a6..b1a65bf 100644 --- a/Modules/TestBigEndian.cmake +++ b/Modules/TestBigEndian.cmake @@ -5,6 +5,8 @@ # MACRO(TEST_BIG_ENDIAN VARIABLE) + SET(CMAKE_ALLOW_UNKNOWN_VARIABLE_READ_ACCESS 1) + IF(NOT DEFINED ${VARIABLE}) IF("HAVE_${VARIABLE}" MATCHES "^HAVE_${VARIABLE}$") TRY_RUN(${VARIABLE} HAVE_${VARIABLE} ${CMAKE_BINARY_DIR} @@ -34,4 +36,6 @@ MACRO(TEST_BIG_ENDIAN VARIABLE) MESSAGE("Check if the system is big endian - failed") ENDIF(HAVE_${VARIABLE}) ENDIF("HAVE_${VARIABLE}" MATCHES "^HAVE_${VARIABLE}$") + ENDIF(NOT DEFINED ${VARIABLE}) + SET(CMAKE_ALLOW_UNKNOWN_VARIABLE_READ_ACCESS) ENDMACRO(TEST_BIG_ENDIAN) |