cpack: skip root symlinks on windows
authorMichael Wallner <mike@php.net>
Mon, 14 Dec 2020 12:36:19 +0000 (13:36 +0100)
committerMichael Wallner <mike@php.net>
Mon, 14 Dec 2020 12:36:19 +0000 (13:36 +0100)
CMakeLists.txt

index 7dc13f1190ed68d4f0cc613843cf6a647f4e3d65..c32fedae0137b7bed7118204cc197e3c1fcf8bea 100644 (file)
@@ -57,13 +57,10 @@ include(CPack.txt)
 install(FILES
             AUTHORS
             BUGS.md
-            ChangeLog
             ChangeLog-0.md
             ChangeLog-1.0.md
             ChangeLog-1.1.md
-            ChangeLog.md
             CONTRIBUTING.md
-            COPYING
             LICENSE
             NEWS
             README.md
@@ -71,6 +68,16 @@ install(FILES
         COMPONENT doc
         DESTINATION ${CMAKE_INSTALL_DOCDIR}/
         )
+if(NOT WIN32)
+    # skip links on windows (cmake bug?)
+    install(FILES
+                ChangeLog
+                ChangeLog.md
+                COPYING
+            COMPONENT doc
+            DESTINATION ${CMAKE_INSTALL_DOCDIR}/
+            )
+endif()
 
 if(ENV{INVALID_CONFIGURATION})
     message(FATAL_ERROR "invalid configuration -- giving up")