How do I reference ninja in vcpkg #19139
Replies: 3 comments
-
Use shell script, to choose the latest ninja version in dir=$(find downloads/tools -name 'ninja-*' | sort --version-sort | tail -n1) add ninja directory to path export PATH=$dir:$PATH |
Beta Was this translation helpful? Give feedback.
-
@linquize search ninja executable looks slightly better than hard-code the path, but still doesn't looks like an idea solution. As vcpkg already downloads cmake and ninja, it will be great if there is a documented way to the projects using vcpkg to access them, like vcpkg export their path bases on some command line option. This could help CI build environment by saving the extra config of both tools. |
Beta Was this translation helpful? Give feedback.
-
We need to consider compatibility issues caused by different versions. |
Beta Was this translation helpful? Give feedback.
-
vcpkg includes a binary download of ninja.exe for its
vcpkg install
, is it possible to reference this ninja.exe in a project which depend on vcpkg (cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE=.../vcpkg.cmake
), without hard-code the path of ninja.exe with version number?Beta Was this translation helpful? Give feedback.
All reactions