Project names starting with "xx" are causing ZERO_CHECK to not build every time on XCode
Hi all, this bug is quite weird. If a project name is starting with letters xx, the ZERO_CHECK target stops being built on every run.
Also, just as a side-note, I think it introduces other issues where XCode schemas get partially created (some targets are missing from the targets list in XCode), which happens in more complicated project structures, and is not part of this repro case. There is a good chance fixing the ZERO_CHECK issue will fix those other odd cases.
I encountered this issue when trying to link with xxHash.
The minimal repro case for this issue can be accessed here: https://github.com/speedym/cmake_zero_check_bug_repro
Repro steps:
- Clone the above repository to a Mac computer with XCode installed
- Run ./config_macos.sh
- XCode should automatically open, select main_app target, press play button to build it
- Notice that ZERO_CHECK target has not been automatically built
Code which causes the failure in library/CMakeLists.txt:
add_library(library
src/api.cpp
interface/api.hpp)
target_include_directories(library
PUBLIC
interface
)
# Lines marked with FAILS cause ZERO_CHECK to NOT build every time on XCode.
# Lines marked with OK work fine, ZERO_CHECK is built every time on XCode.
#project(xxHash C) # FAILS
#project(xxHash) # FAILS
#project(library) # OK
#project(xxLibrary) # FAILS
#project(abc) # OK
project(xxAbc) # FAILS