Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails on Windows as it can't find libraries installed with vcpkg #55

Open
cr0mwell opened this issue May 14, 2024 · 0 comments
Open

Comments

@cr0mwell
Copy link

Hi!

I faced the following issue when trying to build the project on Windows 10:

-- Selecting Windows SDK version 10.0.22621.0 to target Windows 6.2.9200.
CMake Error at CMakeLists.txt:16 (find_package):
  By not providing "FindPCL.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "PCL", but
  CMake did not find one.

  Could not find a package configuration file provided by "PCL" (requested
  version 1.11) with any of the following names:

    PCLConfig.cmake
    pcl-config.cmake

  Add the installation prefix of "PCL" to CMAKE_PREFIX_PATH or set "PCL_DIR"
  to a directory containing one of the above files.  If "PCL" provides a
  separate development package or SDK, be sure it has been installed.

Obviously, the toolchain file from vcpkg should be included within the CmakeLists.txt before running find_package() command:
include(/path/to/vcpkg/scripts/buildsystems/vcpkg.cmake)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant