Can't build with BUILD_SHARED_LIBS=OFF
When building with BUILD_SHARED_LIBS=OFF CMake option, e.g. cmake -S . -B build -G Ninja -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS=OFF -D BUILD_QCH=OFF -D BUILD_DESIGNERPLUGIN=OFF
, CMake fails with following error:
-- Configuring done (1.6s)
CMake Error: install(EXPORT "KF6WidgetsAddonsTargets" ...) includes target "KF6WidgetsAddons" which requires target "KF6WidgetsAddons_resources_1" that is not in any export set.
CMake Error: install(EXPORT "KF6WidgetsAddonsTargets" ...) includes target "KF6WidgetsAddons" which requires target "KF6WidgetsAddons_resources_1" that is not in any export set.
CMake Error: install(EXPORT "KF6WidgetsAddonsTargets" ...) includes target "KF6WidgetsAddons" which requires target "KF6WidgetsAddons_resources_1" that is not in any export set.
CMake Error: install(EXPORT "KF6WidgetsAddonsTargets" ...) includes target "KF6WidgetsAddons" which requires target "KF6WidgetsAddons_resources_1" that is not in any export set.
-- Generating done (0.1s)
CMake Generate step failed. Build files cannot be regenerated correctly.
This is with CMake 3.29.2 and Qt 6.7.0, though I seen the same error with 6.6