From 04c753336c02c03657988512adadd0b2c2d7884b Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Tue, 11 Aug 2020 17:23:58 +0200 Subject: [PATCH] Remove config6 when uninstalling Windows CMake Graphviz Fixes https://gitlab.com/graphviz/graphviz/-/issues/1752 --- cmake/package_info.cmake | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cmake/package_info.cmake b/cmake/package_info.cmake index 577223003..0fe44afa9 100644 --- a/cmake/package_info.cmake +++ b/cmake/package_info.cmake @@ -19,5 +19,13 @@ if(NSIS_FOUND) set(CPACK_NSIS_HELP_LINK "http://www.graphviz.org" ) set(CPACK_NSIS_URL_INFO_ABOUT "http://www.graphviz.org" ) set(CPACK_NSIS_MODIFY_PATH ON ) + if(CMAKE_CL_64) + set(CPACK_NSIS_INSTALL_ROOT "$PROGRAMFILES64") + else() + set(CPACK_NSIS_INSTALL_ROOT "$PROGRAMFILES") + endif() + set(CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS " + Delete \\\"${CPACK_NSIS_INSTALL_ROOT}\\\\${CPACK_PACKAGE_INSTALL_DIRECTORY}\\\\${BINARY_INSTALL_DIR}\\\\config6\\\" + ") LIST(APPEND CPACK_GENERATOR NSIS) endif() -- 2.40.0