Using Debian 6.1.106-3 (2024-08-26) x86_64 GNU/Linux
Using Docker Current version: 4.32.0 (157355)
Using VSCode v 1.92.2
Using CMake v3.30
I’m including a copy of the CMake output during configuration and build.
[proc] Executing command: /usr/local/share/cmake-3.30.0-linux-x86_64/bin/cmake --version
[proc] Executing command: /usr/local/share/cmake-3.30.0-linux-x86_64/bin/cmake -E capabilities
[presetController] Reading and validating the presets “file /workspaces/Api/CMakePresets.json”
[presetController] Successfully validated /workspaces/Api/CMakePresets.json against presets schema
[presetController] Expanding presets file /workspaces/Api/CMakePresets.json
[proc] Executing command: uname -s
[presetController] Successfully expanded presets file /workspaces/Api/CMakePresets.json
[main] Configuring project: Api
[proc] Executing command: /usr/local/share/cmake-3.30.0-linux-x86_64/bin/cmake “-DCMAKE_INSTALL_PREFIX=/workspaces/Api/out/install/GCC 12.2.0 aarch64-linux-gnu” -DCMAKE_C_COMPILER=/usr/bin/aarch64-linux-gnu-gcc -DCMAKE_CXX_COMPILER=/usr/bin/aarch64-linux-gnu-g++ -DCMAKE_BUILD_TYPE=Debug -S/workspaces/Api “-B/workspaces/Api/out/build/GCC 12.2.0 aarch64-linux-gnu”
[cmake] CMake Error: Unable to (re)create the private pkgRedirects directory:
[cmake] /workspaces/Api/out/build/GCC 12.2.0 aarch64-linux-gnu/CMakeFiles/pkgRedirects
[cmake] This may be caused by not having read/write access to the build directory.
[cmake] Try specifying a location with read/write access like:
[cmake] cmake -B build
[cmake] If using a CMake presets file, ensure that preset parameter
[cmake] ‘binaryDir’ expands to a writable directory.
[cmake]
[proc] The command: /usr/local/share/cmake-3.30.0-linux-x86_64/bin/cmake “-DCMAKE_INSTALL_PREFIX=/workspaces/Api/out/install/GCC 12.2.0 aarch64-linux-gnu” -DCMAKE_C_COMPILER=/usr/bin/aarch64-linux-gnu-gcc -DCMAKE_CXX_COMPILER=/usr/bin/aarch64-linux-gnu-g++ -DCMAKE_BUILD_TYPE=Debug -S/workspaces/Api “-B/workspaces/Api/out/build/GCC 12.2.0 aarch64-linux-gnu” exited with code: 1
The problem is that I have whitespace in the path name; GCC 12.2.0 aarch64-linux-gnu (see above). The pathname gets truncated to /workspaces/Api/out/build/GCC.
In the documentation there is no mention of -DSTRING_CONTEXT=“text with whitespace” that others have mentioned. CMake v 3.29 worked fine.