summaryrefslogtreecommitdiffstats
path: root/Modules/TestBigEndian.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2005-02-10 04:00:16 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2005-02-10 04:00:16 (GMT)
commitb7b501bbe8fa7a1a5ee5b342341c5512e7e604ca (patch)
tree32a489074211be98116fc94d45763922e62cc46b /Modules/TestBigEndian.cmake
parentaa947ff48b6cf78663c658b46f37105467c04aea (diff)
downloadCMake-b7b501bbe8fa7a1a5ee5b342341c5512e7e604ca.zip
CMake-b7b501bbe8fa7a1a5ee5b342341c5512e7e604ca.tar.gz
CMake-b7b501bbe8fa7a1a5ee5b342341c5512e7e604ca.tar.bz2
ENH: fix for 1450
Diffstat (limited to 'Modules/TestBigEndian.cmake')
-rw-r--r--Modules/TestBigEndian.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/TestBigEndian.cmake b/Modules/TestBigEndian.cmake
index 3f6d719..f121bdf 100644
--- a/Modules/TestBigEndian.cmake
+++ b/Modules/TestBigEndian.cmake
@@ -10,6 +10,9 @@ MACRO(TEST_BIG_ENDIAN VARIABLE)
${CMAKE_BINARY_DIR}
${CMAKE_ROOT}/Modules/TestBigEndian.c
OUTPUT_VARIABLE OUTPUT)
+ IF(${VARIABLE} STREQUAL "FAILED_TO_RUN")
+ MESSAGE(SEND_ERROR "TestBigEndian Failed to run with output: ${OUTPUT}")
+ ENDIF(${VARIABLE} STREQUAL "FAILED_TO_RUN")
MESSAGE(STATUS "Check if the system is big endian")
IF(HAVE_${VARIABLE})
FILE(APPEND ${CMAKE_BINARY_DIR}/CMakeError.log