`cmake --build --target clean --config Release --preset ninja-multi-config-windows-release` outputs cryptic error message
The output is only one line:
Error: is not a directory
Note that there are two spaces between Error:
and is not
. It’s like cmake is outputting a blank directory name.
CMake versions: 3.23.2, 3.24.3 (same problem with each)
OS: Windows 11 Pro x64
Sometimes running from within CLion, sometimes not (happens either way)
Happens whether or not I’m using presets (Update: Now I'm not so sure about this one)
Happens across multiple different projects
Happens regardless of build tool (Ninja or MSBuild), C/C++ compiler (cl.exe or clang.exe), etc.
vcpkg is present on the system, but this error occurs regardless of whether the project actually uses it
From Discourse: https://discourse.cmake.org/t/cmake-build-command-fails-with-output-error-is-not-a-directory/6854
Edited by Ben Boeckel