"VERSION" file causes include errors on MacOS
The following combination breaks my build on MacOS:
- setting the CoMISo project root dir as include dir: https://graphics.rwth-aachen.de:9000/CoMISo/CoMISo/-/blob/68e7fb6eb836d1af0211341d32cf965e2b4ec5de/CMakeLists.txt#L73
- the "VERSION" file in the project root
-
<version>
being a standard library header in C++20, which is included transitively in LLVM's libc++ - MacOS with (default) case-insensitive file system
This leads to VERSION
being #include
'd, which clearly won't work.
VERSION
is used by vci_get_version()
in cmake-library/VCI/VCICommon.cmake
I have multiple suggestions on how to fix this:
- Avoiding use of
vci_get_version
in CMake in favor of just setting the version in theproject()
call, then deletingVERSION
. If you would merge this change, I'd be up for implementing it. - Reorganizing the source so that we don't have to add the CoMISo root (or worse, its parent directory!) as include dir. For example moving everything to a
src
dir, or even splitting intosrc
andinclude/CoMISo
(for public headers). Not sure how to handleBase/
, this is maybe a task someone with insight into how CoMISo is used at Autodesk could perform better