summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2002-10-24 17:39:23 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2002-10-24 17:39:23 (GMT)
commit5b9b793dde1de9d0e4686abd06f68c1a630ed0aa (patch)
treea2319617d1f7bb233579f5e538900749e21e025a /Modules
parente3e9fb633a3c8df6a34d2e0f6ee9262e3594a690 (diff)
downloadCMake-5b9b793dde1de9d0e4686abd06f68c1a630ed0aa.zip
CMake-5b9b793dde1de9d0e4686abd06f68c1a630ed0aa.tar.gz
CMake-5b9b793dde1de9d0e4686abd06f68c1a630ed0aa.tar.bz2
Add check for big endian in backward compatibility scripts
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CMakeBackwardCompatibilityC.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/CMakeBackwardCompatibilityC.cmake b/Modules/CMakeBackwardCompatibilityC.cmake
index 5263941..e481408 100644
--- a/Modules/CMakeBackwardCompatibilityC.cmake
+++ b/Modules/CMakeBackwardCompatibilityC.cmake
@@ -20,3 +20,6 @@ CHECK_INCLUDE_FILE("limits.h" CMAKE_HAVE_LIMITS_H)
CHECK_INCLUDE_FILE("unistd.h" CMAKE_HAVE_UNISTD_H)
CHECK_INCLUDE_FILE("sys/prctl.h" CMAKE_HAVE_SYS_PRCTL_H)
CHECK_INCLUDE_FILE("pthread.h" CMAKE_HAVE_PTHREAD_H)
+
+INCLUDE (${CMAKE_ROOT}/Modules/TestBigEndian.cmake)
+TEST_BIG_ENDIAN(CMAKE_WORDS_BIGENDIAN)