Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XCode Generator in CMake Not Working #249

Open
ErikTheBerik opened this issue Apr 19, 2024 · 2 comments
Open

XCode Generator in CMake Not Working #249

ErikTheBerik opened this issue Apr 19, 2024 · 2 comments
Labels
wishlist Something that would be nice to have but not a priority

Comments

@ErikTheBerik
Copy link

I am trying to build my CMake project, which uses vectorscan, with XCode generator to run some memory usage tests. When running the XCode generator in CMake I get the following error:

CMake Error in ***/_deps/vectorscan-src/CMakeLists.txt:
  The custom command generating

    ***/_deps/vectorscan-build/src/parser/Parser.cpp

  is attached to multiple targets:

    ragel_Parser
    hs_compile

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

Note that I cannot use -T buildsystem=1 because XCode 15 doesn't allow it any longer (and in order to run XCode in my mac, I need the latest XCode version...

Is there any fix to this?

@markos
Copy link

markos commented Apr 22, 2024

Hi @ErikTheBerik we do not currently use or support XCode, so we're not familiar with it, however I found that others have had that problem with new buildsystem.
swiftlang/swift#60033
and
neovim/neovim#27680 (comment)

If it's a simple fix we will gladly accept a patch to enable Xcode builds, however it's not in our current plans to support Xcode generators from cmake. Try using plain Unix Makefiles or Ninja instead. I will leave this open as wishlist.

@markos markos added the wishlist Something that would be nice to have but not a priority label Apr 22, 2024
@ErikTheBerik
Copy link
Author

Thanks for the reply @markos

I use Ninja as my default generator and that works without any problems, but I needed to use XCode to run some tests using their internal tools.
I am also not too familiar with how Xcode does things, and honestly it seems like more of an apple problem since all other generators work fine. In any case, if you could support Xcode generator at some point that would be great, so thank you for adding the wishlist label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wishlist Something that would be nice to have but not a priority
Projects
None yet
Development

No branches or pull requests

2 participants