-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
None
-
Qt Creator 17.0.0
-
None
Reproduction steps
(1) Enable Coco Code Coverage
Expected behavior
Additional CMake options would be compiler-specific cocoplugin.cmake, not the plain cocoplugin.cmake, based on the selected Qt Kit.
Actual Behavior
The plain cocoplugin.cmake is filled instead.
Rationale
In the documentation(https://doc.qt.io/coco/support-for-build-automation-systems.html#cmake), it writes:
There is a generic file, squishcoco.cmake, and specific setting files (like squishcoco-gcc.cmake) that specifies the compiler. The settings file is then included when the project is configured with CMake, with a command line like cmake <other options> -Csquishcoco-gcc.cmake Then the project is configured for code coverage.
In fact, I faced a problem with the default behavior of Qt Creator where the compiler and the linker were not properly configured for coco wrappers. The issue was resolved after I changed the line to include the compiler-specific cocoplugin.cmake.