mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 18:16:20 +00:00
cmake_uninstall - speed up the process and fix cmake warnings
This commit is contained in:
@@ -29,19 +29,7 @@ foreach(file ${files})
|
|||||||
message(STATUS "Uninstalling ${filepath}")
|
message(STATUS "Uninstalling ${filepath}")
|
||||||
|
|
||||||
if(IS_SYMLINK "${filepath}" OR EXISTS "${filepath}")
|
if(IS_SYMLINK "${filepath}" OR EXISTS "${filepath}")
|
||||||
exec_program(
|
file(REMOVE "${filepath}")
|
||||||
"@CMAKE_COMMAND@"
|
|
||||||
ARGS
|
|
||||||
"-E remove \"${filepath}\""
|
|
||||||
OUTPUT_VARIABLE
|
|
||||||
rm_out
|
|
||||||
RETURN_VALUE
|
|
||||||
rm_retval
|
|
||||||
)
|
|
||||||
|
|
||||||
if(NOT "${rm_retval}" STREQUAL 0)
|
|
||||||
message(FATAL_ERROR "Problem when removing ${filepath}")
|
|
||||||
endif()
|
|
||||||
else(IS_SYMLINK "${filepath}" OR EXISTS "${filepath}")
|
else(IS_SYMLINK "${filepath}" OR EXISTS "${filepath}")
|
||||||
message(STATUS "File ${filepath} does not exist.")
|
message(STATUS "File ${filepath} does not exist.")
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user