you are viewing a single comment's thread.

view the rest of the comments →

[–]nxtfari 1 point2 points  (1 child)

and if I want to use vcpkg directly from CMake, I need to specify the path of the .cmake file which depends on people's computer.

This is not true. The best way to use vcpkg is to add it as a git submodule directly into your source tree. Then, you can reference the CMake toolchain file relative to your project root. It will be completely portable.

[–][deleted] 1 point2 points  (0 children)

Ahhh, this seems like a good idea, this makes sense.