summaryrefslogtreecommitdiff
path: root/CMakeCPack.cmake
diff options
context:
space:
mode:
authorKonstantin Podsvirov <konstantin@podsvirov.pro>2016-07-13 00:50:10 +0300
committerBrad King <brad.king@kitware.com>2016-07-13 10:02:12 -0400
commit5399280873c55c88e2d592541600395166cefd8b (patch)
tree6508ad4d3088f36ac932b986828e0dd999b2bc4b /CMakeCPack.cmake
parent8ae035a569a0e548ca52f042e468477886a53240 (diff)
downloadcmake-5399280873c55c88e2d592541600395166cefd8b.tar.gz
QtIFW: process USE_LGPL when CMake_INSTALL_COMPONENTS
Diffstat (limited to 'CMakeCPack.cmake')
-rw-r--r--CMakeCPack.cmake6
1 files changed, 4 insertions, 2 deletions
diff --git a/CMakeCPack.cmake b/CMakeCPack.cmake
index 60011ae07a..34bb6bbb12 100644
--- a/CMakeCPack.cmake
+++ b/CMakeCPack.cmake
@@ -90,8 +90,10 @@ 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\")")
+ if(USE_LGPL)
+ set(_CPACK_IFW_COMPONENT_CMAKE-GUI_LICENSES "set(CPACK_IFW_COMPONENT_CMAKE-GUI_LICENSES
+ \"LGPLv${USE_LGPL}\" \"${CMake_SOURCE_DIR}/Licenses/LGPLv${USE_LGPL}.txt\")")
+ endif()
endif()
if(SPHINX_MAN)
list(APPEND _CPACK_IFW_COMPONENTS_ALL sphinx-man)