Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Main Repositories
otb
Commits
77fef0bd
Commit
77fef0bd
authored
Jan 19, 2017
by
Rashad Kanavath
Browse files
BUG: wrong variable used in itk post install patch script
parent
2f6bf0da
Changes
1
Hide whitespace changes
Inline
Side-by-side
SuperBuild/CMake/post_install.cmake
View file @
77fef0bd
...
...
@@ -3,9 +3,12 @@ string(REPLACE "|" ";" P_DIRS ${P_DIRS})
foreach
(
p_dir
${
P_DIRS
}
)
set
(
file_list
)
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
}
"
)
if
(
MATCH_FOUND
)
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.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment