summaryrefslogtreecommitdiffstats
path: root/CMakeCPack.cmake
diff options
context:
space:
mode:
authorKonstantin Podsvirov <konstantin@podsvirov.pro>2016-07-12 21:50:10 (GMT)
committerBrad King <brad.king@kitware.com>2016-07-13 14:02:12 (GMT)
commit5399280873c55c88e2d592541600395166cefd8b (patch)
tree6508ad4d3088f36ac932b986828e0dd999b2bc4b /CMakeCPack.cmake
parent8ae035a569a0e548ca52f042e468477886a53240 (diff)
downloadCMake-5399280873c55c88e2d592541600395166cefd8b.zip
CMake-5399280873c55c88e2d592541600395166cefd8b.tar.gz
CMake-5399280873c55c88e2d592541600395166cefd8b.tar.bz2
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 60011ae..34bb6bb 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)