summaryrefslogtreecommitdiff
path: root/CMakeCPack.cmake
diff options
context:
space:
mode:
authorKonstantin Podsvirov <konstantin@podsvirov.pro>2015-07-03 14:50:27 +0300
committerBrad King <brad.king@kitware.com>2015-07-07 09:16:44 -0400
commitecca26855a786bb126341e7fba59557325e54f7b (patch)
tree39d819a5a96c7d0d130c5a5024a2b16cfd2186b6 /CMakeCPack.cmake
parentc14f20f7dd827bd1b9164b3641db697776de85bf (diff)
downloadcmake-ecca26855a786bb126341e7fba59557325e54f7b.tar.gz
CMake: optional show LGPLv2.1 license when install cmake-gui component
In IFW installer if cmake-gui component selected and CMake_GUI_DISTRIBUTE_WITH_Qt_LGPL enabled license will be showed.
Diffstat (limited to 'CMakeCPack.cmake')
-rw-r--r--CMakeCPack.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/CMakeCPack.cmake b/CMakeCPack.cmake
index d7c602403c..54816ecf06 100644
--- a/CMakeCPack.cmake
+++ b/CMakeCPack.cmake
@@ -82,6 +82,8 @@ if(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake")
endif()
if(BUILD_QtDialog)
list(APPEND _CPACK_IFW_COMPONENTS_ALL cmake-gui)
+ set(_CPACK_IFW_COMPONENT_CMAKE-GUI_LICENSES "set(CPACK_IFW_COMPONENT_CMAKE-GUI_LICENSES
+ \"LGPLv2.1\" \"${CMake_SOURCE_DIR}/Licenses/LGPLv2.1.txt\")")
endif()
if(SPHINX_MAN)
list(APPEND _CPACK_IFW_COMPONENTS_ALL sphinx-man)
@@ -100,6 +102,11 @@ if(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake")
set(CPACK_COMPONENTS_ALL \"${_CPACK_IFW_COMPONENTS_ALL}\")
set(CPACK_COMPONENTS_GROUPING IGNORE)
")
+ else()
+ if(BUILD_QtDialog AND CMake_GUI_DISTRIBUTE_WITH_Qt_LGPL)
+ set(_CPACK_IFW_ADDITIONAL_LICENSES
+ "\"LGPLv2.1\" \"${CMake_SOURCE_DIR}/Licenses/LGPLv2.1.txt\"")
+ endif()
endif()
# Components scripts configuration