'vcpkg integrate install missing on macOS/Linux

The vcpkg helps to manage libraries for C++ projects on Windows/macOS/Linux.

On Windows one can

vcpkg integrate install

https://vcpkg.readthedocs.io/en/latest/users/integration/

But outside Windows that does not seem to exist. Am I wrong?

That end up making CMakeLists.txt made on Windows not portable to macOS/Linux. While migrating a project from Windows to macOS I found I have to add

include_directories(~/vcpkg/installed/x64-osx/include)

otherwise make will fail to find header files.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source