mirror of
https://github.com/Z3Prover/z3
synced 2025-04-26 18:45:33 +00:00
20 lines
653 B
CMake
20 lines
653 B
CMake
# Uninstall assembly from the GAC
|
|
set(GAC_ROOT "$ENV{DESTDIR}@CMAKE_INSTALL_FULL_LIBDIR@")
|
|
execute_process(COMMAND
|
|
"@Z3_DOTNET_GACUTIL_EXECUTABLE@"
|
|
# Note ``-us`` takes assembly file name rather than
|
|
# ``-u`` which takes an assembly display name
|
|
"-us"
|
|
"@Z3_DOTNET_ASSEMBLY_NAME@"
|
|
"-f"
|
|
"-package" "@GAC_PKG_NAME@"
|
|
"-root" "${GAC_ROOT}"
|
|
WORKING_DIRECTORY "@CMAKE_CURRENT_BINARY_DIR@"
|
|
RESULT_VARIABLE gacutil_exit_code
|
|
)
|
|
|
|
if ("${gacutil_exit_code}" EQUAL 0)
|
|
message(STATUS "Uninstalled \"@Z3_DOTNET_ASSEMBLY_NAME@\" from the GAC")
|
|
else()
|
|
message(FATAL_ERROR "Failed to uninstall \"@Z3_DOTNET_ASSEMBLY_NAME@\" from the GAC")
|
|
endif()
|