cmake_uninstall.cmake.in: Replace exec_program() with execute_process()
This commit is contained in:
parent
8776236161
commit
edfa4d762d
@ -7,10 +7,10 @@ string(REPLACE "\n" ";" files "${files}")
|
|||||||
foreach(file ${files})
|
foreach(file ${files})
|
||||||
message(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"")
|
message(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"")
|
||||||
if(EXISTS "$ENV{DESTDIR}${file}")
|
if(EXISTS "$ENV{DESTDIR}${file}")
|
||||||
exec_program(
|
execute_process(
|
||||||
"@CMAKE_COMMAND@" ARGS "-E rm -f \"$ENV{DESTDIR}${file}\""
|
COMMAND "@CMAKE_COMMAND@" -E rm -f "$ENV{DESTDIR}${file}"
|
||||||
OUTPUT_VARIABLE rm_out
|
OUTPUT_VARIABLE rm_out
|
||||||
RETURN_VALUE rm_retval
|
RESULT_VARIABLE rm_retval
|
||||||
)
|
)
|
||||||
if("${rm_retval}" STREQUAL 0)
|
if("${rm_retval}" STREQUAL 0)
|
||||||
else()
|
else()
|
||||||
|
Loading…
Reference in New Issue
Block a user