diff --git a/CMakeExternals/PatchGDCM-20130814.cmake b/CMakeExternals/PatchGDCM-20130814.cmake index b816d003fd..437e1c6663 100644 --- a/CMakeExternals/PatchGDCM-20130814.cmake +++ b/CMakeExternals/PatchGDCM-20130814.cmake @@ -1,12 +1,12 @@ # Called by GDCM.cmake (ExternalProject_Add) as a patch for GDCM. # Related bug: http://bugs.mitk.org/show_bug.cgi?id=15800 # read whole file file(STRINGS Source/MediaStorageAndFileFormat/gdcmSorter.cxx sourceCode NEWLINE_CONSUME) # Changing the way gdcmSorter.cxx behaves when encountering an unreadable file -string(REGEX REPLACE "f = NULL;" "std::cerr << "Err: File could not be read: " << it->c_str() << std::endl;\n return false;" sourceCode ${sourceCode}) +string(REPLACE "f = NULL;" "std::cerr << \"Err: File could not be read: \" << it->c_str() << std::endl; \n return false;" sourceCode ${sourceCode}) # set variable CONTENTS, which is substituted in TEMPLATE_FILE set(CONTENTS ${sourceCode}) configure_file(${TEMPLATE_FILE} Source/MediaStorageAndFileFormat/gdcmSorter.cxx @ONLY)