cmake cannot find libraries installed with vcpkg
问题 I want to use vcpkg in a CMake project in Windows, because I need boost and xerces that are both handled by this package manager. I've the following CMakeLists.txt : cmake_minimum_required (VERSION 3.12.0) project (myproj) set (CMAKE_PREFIX_PATH ${XERCES_ROOT}) set (Boost_USE_STATIC_LIBS ON) set (Boost_USE_MULTITHREADED ON) unset (Boost_INCLUDE_DIR CACHE) unset (Boost_LIBRARY_DIRS CACHE) # set (CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../cmake/modules) find_package (Boost COMPONENTS