]> granicus.if.org Git - graphviz/commitdiff
Remove config6 when uninstalling Windows CMake Graphviz
authorMagnus Jacobsson <magnus.jacobsson@berotec.se>
Tue, 11 Aug 2020 15:23:58 +0000 (17:23 +0200)
committerMagnus Jacobsson <magnus.jacobsson@berotec.se>
Tue, 11 Aug 2020 17:51:53 +0000 (19:51 +0200)
Fixes https://gitlab.com/graphviz/graphviz/-/issues/1752

cmake/package_info.cmake

index 577223003af6d095ff794bb87977b788735f7deb..0fe44afa94e570b63a766fe2e04535858f06c7e5 100644 (file)
@@ -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()