Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
None
-
6.5.0 Beta1
Description
I tried to configure Qt with (full list below): -G'Ninja Multi-Config' -DCMAKE_CONFIGURATION_TYPES:STRING='Release;Debug'
and the cmake configuration finished successfully, but then I get over 10000 lines of error in generating content. It ends in:
CMake Error at cmake/QtTargetHelpers.cmake:97 (target_link_libraries): Could not parse framework path "/Users/tjmaciei/obj/qt/qt6/qtbase/lib/QtCore.framework/Versions/A/QtCore_debug" linked by target qmake. Call Stack (most recent call first): cmake/QtExecutableHelpers.cmake:118 (qt_internal_extend_target) cmake/QtToolHelpers.cmake:220 (qt_internal_add_executable) qmake/CMakeLists.txt:50 (qt_internal_add_tool) -- Generating done CMake Generate step failed. Build files cannot be regenerated correctly.
This does not happen if I add -DFEATURE_framework=OFF.
Using cmake version 3.24.0 from Homebrew.
Full cmake command-line:
cmake \ $srcdir \ -DBUILD_TESTING=ON \ -DBUILD_WITH_PCH=ON \ -DCMAKE_CONFIGURATION_TYPES:STRING='Release;Debug' \ -DCMAKE_CXX_COMPILER=clang++ \ -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \ -DCMAKE_C_COMPILER=clang \ -DCMAKE_C_COMPILER_LAUNCHER=ccache \ -DCMAKE_DEFAULT_BUILD_TYPE:STRING=Debug \ -DCMAKE_INSTALL_PREFIX=$PWD \ -DCMAKE_OBJCXX_COMPILER=clang++ \ -DCMAKE_OBJC_COMPILER=clang \ -DCMAKE_PREFIX_PATH='/usr/local' \ -DFEATURE_dbus_linked=OFF \ -DFEATURE_developer_build=ON \ -DFEATURE_optimize_debug=OFF \ -DFEATURE_pkg_config=ON \ -DFEATURE_system_harfbuzz=ON \ -DFEATURE_system_sqlite=ON \ -DICU_ROOT=/usr/local/opt/icu4c \ -DQT_BUILD_EXAMPLES=ON \ -DQT_BUILD_EXAMPLES_BY_DEFAULT=OFF \ -DQT_BUILD_TESTS_BY_DEFAULT=OFF \ -DSQLite3_ROOT=/usr/local/opt/sqlite \ -DZLIB_ROOT=/usr/local/opt/zlib \ -G'Ninja Multi-Config'