From: malaterre Date: Sun, 16 May 2004 23:31:13 +0000 (+0000) Subject: Bad hack for writting a blank file and shut up cmake X-Git-Tag: Version0.5.bp~161 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=1b2fdf45fd08f490f977b7bebfa964b59b612208;p=gdcm.git Bad hack for writting a blank file and shut up cmake --- diff --git a/gdcmPython/CMakeLists.txt b/gdcmPython/CMakeLists.txt index aa9b1348..03b75b59 100644 --- a/gdcmPython/CMakeLists.txt +++ b/gdcmPython/CMakeLists.txt @@ -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(