Skip to content

code-coverage: Xcode 16.4 "new build system" issue #55

@kevin--

Description

@kevin--

I'm using the latest of code-coverage.cmake with CMake 3.31.5 and Xcode 16.4 (16F6) and am receiving this error, not exactly sure what to do. I was just updating the code-coverage script to latest on a project that has been successfully using it for some time.

CMake Error in app/CMakeLists.txt:
  The custom command generating

    /build/app/athena-test.profraw

  is attached to multiple targets:

    ccov-ran-athena-test
    ccov-show-athena-test
    ccov-report-athena-test
    ccov-export-athena-test
    ccov-html-athena-test

  but none of these is a common dependency of the other(s).  This is not
  allowed by the Xcode "new build system".

Any ideas of what to try here? My understanding is the new build system has been used by default by CMake since 3.19 -- see https://cmake.org/cmake/help/latest/variable/CMAKE_XCODE_BUILD_SYSTEM.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions