Service_NSSM/cmake-build-release/SDK/Depend/portaudio/cmake_uninstall.cmake

22 lines
1.3 KiB
CMake
Raw Normal View History

2025-03-06 13:47:33 +08:00
if(NOT EXISTS "E:/project/CppProject/IPBS_NSSM/cmake-build-release/SDK/Depend/portaudio/install_manifest.txt")
message(FATAL_ERROR "Cannot find install manifest: E:/project/CppProject/IPBS_NSSM/cmake-build-release/SDK/Depend/portaudio/install_manifest.txt")
endif(NOT EXISTS "E:/project/CppProject/IPBS_NSSM/cmake-build-release/SDK/Depend/portaudio/install_manifest.txt")
file(READ "E:/project/CppProject/IPBS_NSSM/cmake-build-release/SDK/Depend/portaudio/install_manifest.txt" files)
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}")
exec_program(
"C:/Users/Administrator/AppData/Local/Programs/CLion/bin/cmake/win/x64/bin/cmake.exe" ARGS "-E remove \"$ENV{DESTDIR}${file}\""
OUTPUT_VARIABLE rm_out
RETURN_VALUE rm_retval
)
if(NOT "${rm_retval}" STREQUAL 0)
message(FATAL_ERROR "Problem when removing $ENV{DESTDIR}${file}")
endif(NOT "${rm_retval}" STREQUAL 0)
else(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}")
message(STATUS "File $ENV{DESTDIR}${file} does not exist.")
endif(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}")
endforeach(file)