Skip to content
Snippets Groups Projects
Commit 9a145f2f authored by Rashad Kanavath's avatar Rashad Kanavath
Browse files

ENH: start each line with newline when patching

parent cc488667
No related branches found
No related tags found
No related merge requests found
......@@ -12,12 +12,11 @@ foreach(cmake_file ${file_list})
set(CODE_SNIPPET "${CODE_SNIPPET} \nget_filename_component(DEPS_INSTALL_DIR \"$${}{DEPS_INSTALL_DIR}\" PATH)" )
endforeach()
string(REPLACE "${MATCH}" "$${}{DEPS_INSTALL_DIR}" cmake_file_CONTENTS_NEW ${cmake_file_CONTENTS})
file(WRITE "${cmake_file}"
"# This file is modified by OTB after installation.\n"
"# For example, see POST_INSTALL_* step in OTB/SuperBuild/CMake/External_itk.cmake \n"
"# BEGIN CODE BLOCK FROM OTB SUPERBUILD\n"
"${CODE_SNIPPET}\n"
"# END CODE BLOCK FROM OTB SUPERBUILD\n"
"${cmake_file_CONTENTS_NEW}\n")
file(WRITE "${cmake_file}" "# This file is modified by OTB after installation.
\n# For example, see POST_INSTALL_* step in OTB/SuperBuild/CMake/External_itk.cmake
\n# BEGIN CODE BLOCK FROM OTB SUPERBUILD
\n${CODE_SNIPPET}
\n# END CODE BLOCK FROM OTB SUPERBUILD
\n${cmake_file_CONTENTS_NEW}")
endif()
endforeach() #foreach(cmake_file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment