diff --git a/CMakeLists.txt b/CMakeLists.txt index e764b7eaa..6999c0989 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -189,11 +189,6 @@ if(BUILD_INSTALLER) add_subdirectory(deploy) endif() -install( - FILES ${PROJECT_SOURCE_DIR}/LICENSE - DESTINATION ${CMAKE_INSTALL_LICENSE_DIR} -) - install( FILES ${PROJECT_SOURCE_DIR}/LICENSES/LicenseRef-OpenSSL-Exception.txt DESTINATION ${CMAKE_INSTALL_LICENSE_DIR} diff --git a/deploy/CMakeLists.txt b/deploy/CMakeLists.txt index c7b0ca781..282f292ca 100644 --- a/deploy/CMakeLists.txt +++ b/deploy/CMakeLists.txt @@ -1,9 +1,8 @@ # SPDX-FileCopyrightText: (C) 2024 Chris Rizzitello # SPDX-License-Identifier: MIT -# Copy License with txt ext for picky package creation tools file(COPY_FILE - ${CMAKE_SOURCE_DIR}/LICENSE + ${CMAKE_SOURCE_DIR}/docs/LICENSE ${CMAKE_CURRENT_BINARY_DIR}/LICENSE.txt ONLY_IF_DIFFERENT ) diff --git a/docs/CMakeLists.txt b/docs/CMakeLists.txt index 8a4b1a71e..6e1a9424f 100644 --- a/docs/CMakeLists.txt +++ b/docs/CMakeLists.txt @@ -28,6 +28,9 @@ endif() # Show our documents in the IDE add_custom_target(docs SOURCES + LICENSE Security.md ) + install(FILES Security.md DESTINATION ${CMAKE_INSTALL_DOCDIR}) +install(FILES LICENSE DESTINATION ${CMAKE_INSTALL_LICENSE_DIR}) diff --git a/LICENSE b/docs/LICENSE similarity index 100% rename from LICENSE rename to docs/LICENSE