I'm on a windows 10 machine. I have installed cpprestsdk using vcpkg
vcpkg install cpprestsdk My CMakeLists.txt has the following lines
find_package(cpprestsdk CONFIG REQUIRED) target_link_libraries(${PROJECT_NAME} PRIVATE cpprestsdk::cpprest cpprestsdk::cpprestsdk_zlib_internal cpprestsdk::cpprestsdk_boost_internal cpprestsdk::cpprestsdk_brotli_internal) running
cmake -GNinja .. -DCMAKE_TOOLCHAIN_FILE="C:\Program Files\vcpkg\scripts\buildsystems\vcpkg.cmake" gives me the following error
Make Error at C:/Program Files/vcpkg/scripts/buildsystems/vcpkg.cmake:250 (_add_library): Target "<target_name_hidden>" links to targe "cpprestsdk::cpprestsdk_boost_internal" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing?
cpprestsdk::cpprestsdk_zlib_internalinstead of simple find_package(ZLIB)?