# Problem using CMake with a NTFS share

**URL:** https://discourse.cmake.org/t/problem-using-cmake-with-a-ntfs-share/608
**Category:** Usage
**Created:** [February 10, 2020, 12:16pm UTC](https://discourse.cmake.org/t/problem-using-cmake-with-a-ntfs-share/608 "2020-02-10T12:16:11Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![DavidA](https://discourse.cmake.org/user_avatar/discourse.cmake.org/davida/32/128_2.png) [@DavidA](https://discourse.cmake.org/u/DavidA)
#### Post date: [February 10, 2020, 12:16pm UTC](https://discourse.cmake.org/t/problem-using-cmake-with-a-ntfs-share/608/1 "2020-02-10T12:16:11Z")

</div>

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:

```auto
$ 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?

---

<div class="post-metadata">

### Author: ![DavidA](https://discourse.cmake.org/user_avatar/discourse.cmake.org/davida/32/128_2.png) [@DavidA](https://discourse.cmake.org/u/DavidA)
#### Post date: [February 12, 2020, 4:26pm UTC](https://discourse.cmake.org/t/problem-using-cmake-with-a-ntfs-share/608/2 "2020-02-12T16:26:33Z")

</div>

Just wondered whether anyone can help with this question please. Perhaps I need a hint to know how to provide more information?

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [February 16, 2020, 12:58am UTC](https://discourse.cmake.org/t/problem-using-cmake-with-a-ntfs-share/608/3 "2020-02-16T00:58:05Z")

</div>

Does `strace` have anything interesting to say about why the `configure_file` failed?

---

<div class="post-metadata">

### Author: ![DavidA](https://discourse.cmake.org/user_avatar/discourse.cmake.org/davida/32/128_2.png) [@DavidA](https://discourse.cmake.org/u/DavidA)
#### Post date: [February 18, 2020, 3:28pm UTC](https://discourse.cmake.org/t/problem-using-cmake-with-a-ntfs-share/608/4 "2020-02-18T15:28:01Z")

</div>

Thanks for your answer. The problem has gone away for now, with no explanation.
