All Downloads are FREE. Search and download functionalities are using the official Maven repository.

z3-z3-4.13.0.src.api.dotnet.cmake_uninstall_gac.cmake.in Maven / Gradle / Ivy

The newest version!
# 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()




© 2015 - 2024 Weber Informatics LLC | Privacy Policy