d7c6d69a8c
Configuring a static plugin init library with CMake versions earlier
than 3.18.0 fails at generation phase with
CMake Error at Qt6CoreMacros.cmake:2071
(add_library):
Cannot find source file:
example/plugins/basictools/pnp_basictools_init.cpp
Call Stack (most recent call first):
qtbase/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:1998
(_qt_internal_add_library)
qtbase/lib/cmake/Qt6/QtPublicPluginHelpers.cmake:243
(qt6_add_library)
qtbase/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:1967
(__qt_internal_add_static_plugin_init_object_library)
qtbase/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:1989
(qt6_add_plugin)
qtbase/plugins/basictools/CMakeLists.txt:1 (qt_add_plugin)
Marking the generated file as GENERATED explicitly solves the issue.
Similar to
|
||
---|---|---|
.github/workflows | ||
bin | ||
cmake | ||
coin | ||
config.tests | ||
dist | ||
doc | ||
examples | ||
lib | ||
libexec | ||
mkspecs | ||
qmake | ||
src | ||
tests | ||
util | ||
.cmake.conf | ||
.gitattributes | ||
.gitignore | ||
.lgtm.yml | ||
.qmake.conf | ||
.tag | ||
CMakeLists.txt | ||
conanfile.py | ||
config_help.txt | ||
configure | ||
configure.bat | ||
configure.cmake | ||
dependencies.yaml | ||
LICENSE.FDL | ||
LICENSE.GPL2 | ||
LICENSE.GPL3 | ||
LICENSE.GPL3-EXCEPT | ||
LICENSE.LGPL3 | ||
LICENSE.LGPLv3 | ||
LICENSE.QT-LICENSE-AGREEMENT | ||
qt_cmdline.cmake | ||
sync.profile |