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")