MESSAGE ( STATUS "Looking for GDCM... found")
MESSAGE ( STATUS "* Dir = ${GDCM_DIR}")
- MESSAGE ( STATUS "* Version = ${GDCM_VERSION_MAJOR}.${GDCM_VERSION_MINOR}.${GDCM_VERSION_PATCH}")
+ MESSAGE ( STATUS "* Version = ${GDCM_MAJOR_VERSION}.${GDCM_MINOR_VERSION}.${GDCM_BUILD_VERSION}")
MESSAGE ( STATUS "* Namespace = ${GDCM_NAME_SPACE}")
+ # Test that GDCM_NAME_SPACE is **NOT** "gdcm" or will conflict with
+ # embedded gdcm in ITK and will result in hard seg faults !
+ IF (GDCM_NAME_SPACE STREQUAL "gdcm")
+ MESSAGE(FATAL_ERROR "GDCM_NAME_SPACE value is 'gdcm' which conflicts with ITK embededd gdcm namespace : rebuild gdcm with another GDCM_NAME_SPACE value")
+ ENDIF (GDCM_NAME_SPACE STREQUAL "gdcm")
+
MARK_AS_ADVANCED(GDCM_DIR)
SET(BBTK_GDCM_LIBRARIES
IF(USE_DOXYGEN)
FIND_PACKAGE(Doxygen REQUIRED)
# MESSAGE(STATUS "Looking for doxygen... - found ${DOXYGEN}")
- # IF(DOXYGEN)
-#
-# ELSE(DOXYGEN)
-# MESSAGE(FATAL_ERROR "Doxygen not found. Required to build the doxygen documentation")
-# ENDIF(DOXYGEN)
+ IF(DOXYGEN)
+
+ ELSE(DOXYGEN)
+ MESSAGE(FATAL_ERROR "Doxygen not found. Required to build the doxygen documentation")
+ ENDIF(DOXYGEN)
ENDIF(USE_DOXYGEN)
#-----------------------------------------------------------------------------