Help: cmake(1) --toolchain path relative

other cmake(1) options are relative to cwd. It is surprising
enough that --toolchain is relative to -B or -S that it's
good to call it out here too.
This commit is contained in:
scivision
2024-03-22 17:17:18 -04:00
parent cff8aefc6a
commit be6763f34b

View File

@@ -108,7 +108,9 @@
.. versionadded:: 3.21
Specify the cross compiling toolchain file, equivalent to setting
:variable:`CMAKE_TOOLCHAIN_FILE` variable.
:variable:`CMAKE_TOOLCHAIN_FILE` variable. Relative paths are interpreted as
relative to the build directory, and if not found, relative to the source
directory.
.. option:: --install-prefix <directory>