From 08183e32cae3bb2a610e98fe92e0c7796e8872e7 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Mon, 14 Dec 2020 13:36:19 +0100 Subject: [PATCH] cpack: skip root symlinks on windows --- CMakeLists.txt | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7dc13f11..c32fedae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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") -- 2.30.2