We have a CMake project that builds a C++ executable using Ninja on Linux (using gnu g++). It works fine when running entirely on the build machine’s local filesystem.
However, some of our users want to store their project files on a NTFS share, mounted on the Linux build machine. We are seeing two problems with this:
Firstly, in some cases CMake fails to build the generator files:
$ cmake -G Ninja ../..
-- Build type is 'Release'
CMake Error at /usr/local/share/cmake-3.16/Modules/CMakeDetermineSystem.cmake:185 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:10 (project)
Secondly, if CMake does succeed, Ninja repeatedly compiles certain files even though they are unchanged.
I can investigate the second problem using:
ninja -d explain
Please can you help with the first problem?