diff options
author | Konstantin Podsvirov <konstantin@podsvirov.pro> | 2016-07-12 21:50:10 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-07-13 14:02:12 (GMT) |
commit | 5399280873c55c88e2d592541600395166cefd8b (patch) | |
tree | 6508ad4d3088f36ac932b986828e0dd999b2bc4b /CMakeCPack.cmake | |
parent | 8ae035a569a0e548ca52f042e468477886a53240 (diff) | |
download | CMake-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.cmake | 6 |
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) |