Closed benj02 closed 2 years ago
Please check if your vcpkg triplet is set properly between all builds and package installs (e.g. x64-windows
or x64-windows-static
). If that's the case, POCO builds file in vcpkg, but downstream projects can't find it, it's a vcpkg bug - not much we can do about that. I'd then recommend creating a minimal CMake test project that exposes this issue and open a bug report in the vcpkg issue tracker. From my experience, they're quite fast at solving issues if you provide good information.
Here's a minimal CMakeLists.txt that you could use to test, just drop it anywhere and configure the build using the vcpkg toolchain file:
cmake_minimum_required(VERSION 3.15)
project(vcpkg_test)
find_package(Poco REQUIRED COMPONENTS Foundation)
file(WRITE ${CMAKE_CURRENT_LIST_DIR}/main.cpp "int main() { return 0; }")
add_executable(vcpkg-test main.cpp)
target_link_libraries(vcpkg-test PUBLIC Poco::Foundation)
I have build libprojectM and am now trying to build this project, but I'm running into this error:
I have installed
pcre
andpcre2
through vcpkg. The filesC:\home\vcpkg\installed\x64-windows\lib\pcre.lib
andC:\home\vcpkg\installed\x64-windows\include\pcre.h
both exist. Somehow CMake cannot find them.