mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-23 22:58:37 -05:00
Merge topic 'cmake-gui-Qt-LGPLv3'
9ad10c8f cmake-gui: Reference LGPLv3 when redistributing Qt
This commit is contained in:
@@ -150,12 +150,12 @@ if(APPLE)
|
||||
MACOSX_PACKAGE_LOCATION Resources)
|
||||
endif()
|
||||
|
||||
if(CMake_GUI_DISTRIBUTE_WITH_Qt_LGPL)
|
||||
install(FILES ${CMake_SOURCE_DIR}/Licenses/LGPLv2.1.txt
|
||||
if(USE_LGPL)
|
||||
install(FILES ${CMake_SOURCE_DIR}/Licenses/LGPLv${USE_LGPL}.txt
|
||||
DESTINATION ${CMAKE_DATA_DIR}/Licenses
|
||||
${COMPONENT})
|
||||
set_property(SOURCE CMakeSetupDialog.cxx
|
||||
PROPERTY COMPILE_DEFINITIONS CMake_GUI_DISTRIBUTE_WITH_Qt_LGPL)
|
||||
PROPERTY COMPILE_DEFINITIONS USE_LGPL="${USE_LGPL}")
|
||||
endif()
|
||||
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
|
||||
@@ -830,17 +830,18 @@ void CMakeSetupDialog::doAbout()
|
||||
"\n"
|
||||
"CMake GUI maintained by csimsoft,\n"
|
||||
"built using Qt %2 (qt-project.org).\n"
|
||||
#ifdef CMake_GUI_DISTRIBUTE_WITH_Qt_LGPL
|
||||
#ifdef USE_LGPL
|
||||
"\n"
|
||||
"The Qt Toolkit is Copyright (C) Digia Plc and/or its subsidiary(-ies).\n"
|
||||
"Qt is licensed under terms of the GNU LGPLv2.1, available at:\n"
|
||||
"Qt is licensed under terms of the GNU LGPLv" USE_LGPL ", available at:\n"
|
||||
" \"%3\""
|
||||
#endif
|
||||
);
|
||||
msg = msg.arg(cmVersion::GetCMakeVersion());
|
||||
msg = msg.arg(qVersion());
|
||||
#ifdef CMake_GUI_DISTRIBUTE_WITH_Qt_LGPL
|
||||
std::string lgpl = cmSystemTools::GetCMakeRoot() + "/Licenses/LGPLv2.1.txt";
|
||||
#ifdef USE_LGPL
|
||||
std::string lgpl =
|
||||
cmSystemTools::GetCMakeRoot() + "/Licenses/LGPLv" USE_LGPL ".txt";
|
||||
msg = msg.arg(lgpl.c_str());
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user