summaryrefslogtreecommitdiffstats
path: root/CMakeCPack.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-06-17 19:02:54 (GMT)
committerBrad King <brad.king@kitware.com>2016-06-17 19:02:54 (GMT)
commit9ad10c8feb9ffd0adf0840379eedbae4df49ffd7 (patch)
treefa47a30421aca853983b15c34485150ffe7cca51 /CMakeCPack.cmake
parent9e4725560493fdac423102469da6dbe1779383c4 (diff)
downloadCMake-9ad10c8feb9ffd0adf0840379eedbae4df49ffd7.zip
CMake-9ad10c8feb9ffd0adf0840379eedbae4df49ffd7.tar.gz
CMake-9ad10c8feb9ffd0adf0840379eedbae4df49ffd7.tar.bz2
cmake-gui: Reference LGPLv3 when redistributing Qt
Download http://www.gnu.org/licenses/lgpl.txt and place it as Licenses/LGPLv3.txt in our source tree. When building cmake-gui, use option CMake_GUI_DISTRIBUTE_WITH_Qt_LGPL to enable notification in the "About" dialog of how the distribution of Qt is licensed. Install the license file as ${CMAKE_ROOT}/Licenses/LGPLv3.txt so that the dialog can display a path to it.
Diffstat (limited to 'CMakeCPack.cmake')
-rw-r--r--CMakeCPack.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeCPack.cmake b/CMakeCPack.cmake
index 72fc97c..8879cb9 100644
--- a/CMakeCPack.cmake
+++ b/CMakeCPack.cmake
@@ -108,9 +108,9 @@ if(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake")
set(CPACK_COMPONENTS_GROUPING IGNORE)
")
else()
- if(BUILD_QtDialog AND CMake_GUI_DISTRIBUTE_WITH_Qt_LGPL)
+ if(BUILD_QtDialog AND USE_LGPL)
set(_CPACK_IFW_ADDITIONAL_LICENSES
- "\"LGPLv2.1\" \"${CMake_SOURCE_DIR}/Licenses/LGPLv2.1.txt\"")
+ "\"LGPLv${USE_LGPL}\" \"${CMake_SOURCE_DIR}/Licenses/LGPLv${USE_LGPL}.txt\"")
endif()
endif()