You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
which uses a filename with the non-escaped reserved symbol | in Ninja syntax.
Of course, one could argue that CMake should escape the referenced files in the generated build.ninja file correctly. On the other hand, it seems that Ninja doesn't support any escape sequence for the pipe character. So CMake got its hands tied in this matter. What is your take on this issue?
How to reproduce it
No response
The text was updated successfully, but these errors were encountered:
Just to make sure, is this happening if using the Unix Makefiles CMake generator instead of the Ninja one?
ZLIB-release-armv8|x86_64-data.cmake
This seems the cause, I am now a bit surprised that this doesn't generate issues with other generators. I guess that we could do a replace of the | character too for the file names? cc @czoido
Just to make sure, is this happening if using the Unix Makefiles CMake generator instead of the Ninja one?
I think the reason why it only fails in Ninja is because | is a reserved character in Ninja files and when making reference to files that have that character in the filename Ninja interprets them incorrectly, that's why it does not fail with Unix Makefiles.
This seems the cause, I am now a bit surprised that this doesn't generate issues with other generators. I guess that we could do a replace of the | character too for the file names? cc @czoido
Yes, I think the only solution we can bring would be to do a replace of the character | in the filenames. Let's check that solution.
Describe the bug
Using generated CMake files for macOS universal binaries aren't compatible with Ninja. For example:
Please run the following commands:
Then you'll get something like
The reason for this error is the phony target which refreshes the CMake cache
which uses a filename with the non-escaped reserved symbol
|
in Ninja syntax.Of course, one could argue that CMake should escape the referenced files in the generated
build.ninja
file correctly. On the other hand, it seems that Ninja doesn't support any escape sequence for the pipe character. So CMake got its hands tied in this matter. What is your take on this issue?How to reproduce it
No response
The text was updated successfully, but these errors were encountered: