]> Creatis software - gdcm.git/commitdiff
Bad hack for writting a blank file and shut up cmake
authormalaterre <malaterre>
Sun, 16 May 2004 23:31:13 +0000 (23:31 +0000)
committermalaterre <malaterre>
Sun, 16 May 2004 23:31:13 +0000 (23:31 +0000)
gdcmPython/CMakeLists.txt

index aa9b134888d20d5a97e08b8d4ee3ba2ffbc159f4..03b75b59e66fe9d06c6481866da0e443623c86bc 100644 (file)
@@ -40,6 +40,9 @@ ELSE(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 1.9)
   IF(NOT SWIG_EXECUTABLE)
     MESSAGE(FATAL_ERROR "Swig could not be found wrapping is impossible")
   ENDIF(NOT SWIG_EXECUTABLE)
+
+  # Bad hack to work around bug #846 in cmake, hopefully will desepear soon anyway
+  FILE(READ ${GDCM_BINARY_DIR}/gdcmPython/gdcm.py SWIG_GDCM_PY)  
   
   # Build our custom command :
   ADD_CUSTOM_COMMAND(