Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing case to -f parameter causes no regeneration for CMake projects on macOS #1959

Open
KyleFromKitware opened this issue Apr 19, 2021 · 1 comment
Labels

Comments

@KyleFromKitware
Copy link

Let's say you have the following minimal CMake project:

cmake_minimum_required(VERSION 3.18)
project(test NONE)

Then you run the following on macOS:

$ mkdir build
$ cd build
$ cmake .. -G "Ninja Multi-Config"
$ ninja -f build-debug.ninja # This correctly says "ninja: no work to do."
$ touch ../CMakeLists.txt
$ ninja -f build-debug.ninja # This should cause a reconfigure, but still says no work to do
$ ninja -f build-Debug.ninja # This reconfigures correctly

This leads me to believe Ninja isn't handling case-insensitive filesystems correctly. build-Debug.ninja is the actual name of the file, but I would not expect passing build-debug.ninja to cause different behavior.

This was first reported here:

https://gitlab.kitware.com/cmake/cmake/-/issues/22070

@bradking
Copy link
Contributor

Cc: @mathstuf

@jhasse jhasse added the bug label Apr 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants