Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.6.2, 6.7.0 RC
-
None
Description
We tried to use qt_add_qml_module to an existing library. It works good for a single config build. But we need to use Xcode for macOS and iOS and got those warnings. I can reproduce it on Linux with 'Ninja Multi-Config', too.
CMake Error in src/ui/qml/CMakeLists.txt: Evaluation file to be written multiple times with different content. This is generally caused by the content evaluating the configuration type, language, or location of object files: /Users/.../src/ui/qml/qmltypes/CompanyUiQml_foreign_types.txt
qt_add_qml_module(CompanyUiQml URI "Company.Type" VERSION "${PROJECT_VERSION}" OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/modules/${CMAKE_SYSTEM_NAME}/Company/Type NO_CACHEGEN NO_PLUGIN NO_IMPORT_SCAN )