Commit 77fef0bd authored by Rashad Kanavath's avatar Rashad Kanavath
Browse files

BUG: wrong variable used in itk post install patch script

parent 2f6bf0da
......@@ -3,9 +3,12 @@ string(REPLACE "|" ";" P_DIRS ${P_DIRS})
foreach( p_dir ${P_DIRS} )
file( GLOB file_list "${p_dir}/*.cmake" )
list(SORT file_list)
foreach( cmake_file ${file_list} )
file(STRINGS "${cmake_file}" MATCH_FOUND REGEX "${MATCH}")
file(STRINGS "${cmake_file}" MATCH_FOUND REGEX "${P_MATCH}")
message("Replacing '${P_MATCH}' with '${P_REPLACE}' in ${cmake_file}")
file(STRINGS "${cmake_file}" cmake_file_CONTENTS NEWLINE_CONSUME)
string(REPLACE "${P_MATCH}" "$${}{${P_REPLACE}}" cmake_file_CONTENTS ${cmake_file_CONTENTS})
file(WRITE "${cmake_file}" "# This file is modified by OTB after installation.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment