diff --git a/CMakeLists.txt b/CMakeLists.txt index d2a0b851..dfbf1373 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,7 +12,7 @@ set(GITTYUP_VERSION string(TIMESTAMP CURR_YEAR "%Y") add_compile_definitions(CURR_YEAR=${CURR_YEAR}) -configure_file(${CMAKE_SOURCE_DIR}/LICENSE.md.in ${CMAKE_BINARY_DIR}/LICENSE.md +configure_file(${CMAKE_SOURCE_DIR}/LICENSE.md.in ${CMAKE_SOURCE_DIR}/LICENSE.md @ONLY) # Write version to file so it can be used also from external, for example in the diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 00000000..76c1c167 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2018 Scientific Toolworks, Inc. +Copyright (c) 2021-2023 Gittyup contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/pack/CMakeLists.txt b/pack/CMakeLists.txt index 3cb12490..eea79fe5 100644 --- a/pack/CMakeLists.txt +++ b/pack/CMakeLists.txt @@ -283,7 +283,7 @@ set(CPACK_PACKAGE_VERSION_MINOR ${GITTYUP_VERSION_MINOR}) set(CPACK_PACKAGE_VERSION_PATCH ${GITTYUP_VERSION_PATCH}) if(WIN32) - set(CPACK_RESOURCE_FILE_LICENSE ${CMAKE_BINARY_DIR}/LICENSE.md) + set(CPACK_RESOURCE_FILE_LICENSE ${CMAKE_SOURCE_DIR}/LICENSE.md) endif() set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR})