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
b3020c47
Commit
b3020c47
authored
Jul 05, 2016
by
Rashad Kanavath
Browse files
fix execute_process call
parent
e194bd9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMake/cmake_uninstall.cmake.in
View file @
b3020c47
...
...
@@ -8,14 +8,14 @@ string(REGEX REPLACE "\n" ";" files "${files}")
foreach(file ${files})
message(STATUS "Uninstalling $ENV{DESTDIR}${file}")
if(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}")
execute_process(
"@CMAKE_COMMAND@"
"
-E remove
\
"$ENV{DESTDIR}${file}
\"
"
OUTPUT_VARIABLE
rm_
out
RESULT_VARIABLE r
m_ret
va
l
execute_process(
COMMAND
"@CMAKE_COMMAND@" -E remove "$ENV{DESTDIR}${file}"
OUTPUT_VARIABLE out
_var
RESULT_VARIABLE r
es_
va
r
)
if(NOT "${r
m_ret
va
l
}" STREQUAL 0)
if(NOT "${r
es_
va
r
}" STREQUAL 0)
message(FATAL_ERROR "Problem when removing $ENV{DESTDIR}${file}")
endif(
NOT "${rm_retval}" STREQUAL 0
)
endif()
else()
message(STATUS "File $ENV{DESTDIR}${file} does not exist.")
endif()
...
...
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