Skip to content

Xcode project generation failing #11237

@carl-tud

Description

@carl-tud

Describe the bug
cmake -G Xcode fails

To Reproduce
Run mkdir build, cd build and cmake -G Xcode .. on a Mac

Expected behavior
cmake -G Xcode does not fail and generates xcodeproj

Version
ef6c679

Stack trace

$ cmake -G Xcode ../                  
-- The C compiler identification is AppleClang 16.0.0.16000026
-- The CXX compiler identification is AppleClang 16.0.0.16000026
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using Cmake version 3.31.0
-- Build spdlog: 1.14.1
-- Build type: 
-- The javacc executable not found, using existing files
-- The generateDS executable not found, using existing files
-- Configuring done (4.8s)
CMake Error in src/CMakeLists.txt:
  The custom command generating

    /path/to/doxygen/build/generated_src/configvalues.h

  is attached to multiple targets:

    generate_configvalues_header
    doxycfg
    doxymain

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


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

    /path/to/doxygen/build/generated_src/configvalues.h

  is attached to multiple targets:

    generate_configvalues_header
    doxycfg
    doxymain

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


-- Generating done (0.1s)
CMake Generate step failed.  Build files cannot be regenerated correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    install/buildbug in the installation or build scripts

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions