Ninka: ARCHIVE_RUNTIME_OUTPUT uses incorrect path if path contains space
Background
ARCHIVE_RUNTIME_OUTPUT
does not seem to use the correct path when the path contains a space.
Platform: Windows 10
CMake: 3.21.3
Ninja: 1.10.0
Steps to reproduce
- Download and extract cmake-space.zip
-
cd
intocmake-space
- Run
mkdir out\build && cd out\build && cmake -G "Ninja" ..\..
Expected results: Two directories are created at:
./space path/runtime
./space path/archive
Actual results: Two directories are created at:
./space path/runtime
./out/build/space path/archive
If I change CMakeLists.txt
's set(spacepath "${CMAKE_SOURCE_DIR}/space path")
to set(spacepath "${CMAKE_SOURCE_DIR}/space_path")
, then I get the expected result where these two directories exists:
./space_path/runtime
./space_path/archive
Edited by Brad King