From 77bba6d640b3d90cbc27a47ae8e728981a29c915 Mon Sep 17 00:00:00 2001 From: Cristian Adam Date: Thu, 29 Sep 2022 09:12:27 +0200 Subject: [PATCH] CMake: fix CMake configuration error Amends 860d003a34e0c9b723146b2e77c923f09009597c Change-Id: Ie87d2188291270cf1dd05d25bae24d0ea5ef6569 Reviewed-by: Reviewed-by: Eike Ziller --- packaging/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/CMakeLists.txt b/packaging/CMakeLists.txt index b84d271caa7..ef89687621c 100644 --- a/packaging/CMakeLists.txt +++ b/packaging/CMakeLists.txt @@ -11,10 +11,10 @@ set(CPACK_VERBATIM_VARIABLES YES) #set(CPACK_RESOURCE_FILE_README ${CMAKE_CURRENT_LIST_DIR}/Readme.txt) # WIX needs a license file ending with .txt -file(COPY_FILE +file(CREATE_LINK ${CMAKE_CURRENT_LIST_DIR}/../LICENSE.GPL3-EXCEPT ${CMAKE_CURRENT_BINARY_DIR}/LICENSE.GPL3-EXCEPT.txt - ONLY_IF_DIFFERENT) + COPY_ON_ERROR) set(CPACK_RESOURCE_FILE_LICENSE ${CMAKE_CURRENT_BINARY_DIR}/LICENSE.GPL3-EXCEPT.txt) set(CPACK_PACKAGE_CONTACT "None")