I have a suspicion that this bug may be triggered by the CMakeLists doing things they probably shouldn't, e.g. globally setting variables like CMAKE_Swift_MODULE_DIRECTORY even when it is not top-level and then using that to set INTERFACE_INCLUDE_DIRECTORIES properties. Obviously, the CMake Xcode generator “should” be resilient to any arbitrary setup you choose, but it's probably impossible for its author to avoid making some assumptions of regularity. I know what patch to offer for those top level variables, but then the INTERFACE_INCLUDE_DIRECTORIES settings stop having their intended effect.
I'd like to know what cmake + Ninja commands are expected to work on this project so that I can propose changes that preserve that functionality.
/cc @compnerd who wrote most of the CMake support.
I have a suspicion that this bug may be triggered by the CMakeLists doing things they probably shouldn't, e.g. globally setting variables likeCMAKE_Swift_MODULE_DIRECTORYeven when it is not top-level and then using that to setINTERFACE_INCLUDE_DIRECTORIESproperties. Obviously, the CMake Xcode generator “should” be resilient to any arbitrary setup you choose, but it's probably impossible for its author to avoid making some assumptions of regularity. I know what patch to offer for those top level variables, but then theINTERFACE_INCLUDE_DIRECTORIESsettings stop having their intended effect.I'd like to know what cmake + Ninja commands are expected to work on this project so that I can propose changes that preserve that functionality.
/cc @compnerd who wrote most of the CMake support.