]> Creatis software - gdcm.git/blobdiff - CMakeLists.txt
ENH: Dont use capital letter for hex integer
[gdcm.git] / CMakeLists.txt
index cad43283bd4964cd5badc5de099936fe96483427..e8d8e3513df12b95c46e88747b62ed9faea16c55 100644 (file)
@@ -58,9 +58,8 @@ INCLUDE (${CMAKE_ROOT}/Modules/CMakeBackwardCompatibilityCXX.cmake)
 IF(CMAKE_NO_ANSI_STRING_STREAM)
   SET(GDCM_NO_ANSI_STRING_STREAM 1)
 ENDIF(CMAKE_NO_ANSI_STRING_STREAM)
-IF(${CMAKE_WORDS_BIGENDIAN})
- SET(GDCM_WORDS_BIGENDIAN 1)
-ENDIF(${CMAKE_WORDS_BIGENDIAN})
+INCLUDE (${CMAKE_ROOT}/Modules/TestBigEndian.cmake)
+TEST_BIG_ENDIAN(GDCM_WORDS_BIGENDIAN)
 
 INCLUDE (${CMAKE_ROOT}/Modules/CheckIncludeFile.cmake)
 CHECK_INCLUDE_FILE("stdint.h" CMAKE_HAVE_STDINT_H)