]> Creatis software - gdcm.git/blobdiff - CMakeLists.txt
COMP: Fix minor compilation warning on Win32 VS6
[gdcm.git] / CMakeLists.txt
index cad43283bd4964cd5badc5de099936fe96483427..fce4b7ade6ea4fc9f6c8d3889267382bc985f437 100644 (file)
@@ -30,8 +30,8 @@ MARK_AS_ADVANCED(LIBRARY_OUTPUT_PATH EXECUTABLE_OUTPUT_PATH)
 #-----------------------------------------------------------------------------
 # Build directory on which many applications depend
 SUBDIRS(
-  src
   Dicts
+  src
 )
 #-----------------------------------------------------------------------------
 # Example subdir:
@@ -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)