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

[shapelib] Unable to find shp-config.cmake when including in build #16041

Closed
thschneider-lgn opened this issue Feb 4, 2021 · 1 comment · Fixed by #22633
Closed

[shapelib] Unable to find shp-config.cmake when including in build #16041

thschneider-lgn opened this issue Feb 4, 2021 · 1 comment · Fixed by #22633
Assignees
Labels
category:port-bug The issue is with a library, which is something the port should already support

Comments

@thschneider-lgn
Copy link

Host Environment

  • OS: Windows 10
  • Compiler: MSVC 19.28.29336

To Reproduce
Steps to reproduce the behavior:
./vcpkg install shapelib
CMakeLists.txt contains:

find_package(shp CONFIG REQUIRED)
...
target_link_libraries(main PRIVATE shp)

cmake .. -G "Visual Studio 16 2019" -A Win32 -DCMAKE_TOOLCHAIN_FILE=D:/dev/vcpkg/scripts/buildsystems/vcpkg.cmake
cmake --build . --config Debug

Failure logs

[cmake] -- Running vcpkg install
[cmake] Detecting compiler hash for triplet x86-windows...
[cmake] The following packages will be built and installed:
[cmake]     shapelib[core]:x86-windows -> 1.5.0
[cmake] Using cached binary package: C:\Users\thoma\AppData\Local\vcpkg\archives\5c\5ceeff8b1e0eb4f21ff590067f4d350abef9709f.zip
[cmake] Starting package 1/1: shapelib:x86-windows
[cmake] Building package shapelib[core]:x86-windows...
[cmake] Building package shapelib[core]:x86-windows... done
[cmake] Installing package shapelib[core]:x86-windows...
[cmake] Installing package shapelib[core]:x86-windows... done
[cmake] Elapsed time for package shapelib:x86-windows: 279 ms
...
[cmake] CMake Error at external/vcpkg/scripts/buildsystems/vcpkg.cmake:650 (_find_package):
[cmake]   Could not find a package configuration file provided by "shp" with any of
[cmake]   the following names:
[cmake] 
[cmake]     shpConfig.cmake
[cmake]     shp-config.cmake
[cmake] 
[cmake]   Add the installation prefix of "shp" to CMAKE_PREFIX_PATH or set "shp_DIR"
[cmake]   to a directory containing one of the above files.  If "shp" provides a
[cmake]   separate development package or SDK, be sure it has been installed.
@JonLiu1993 JonLiu1993 added the category:port-bug The issue is with a library, which is something the port should already support label Feb 5, 2021
@JackBoosY JackBoosY assigned LilyWangLL and unassigned JackBoosY Dec 2, 2021
@dg0yt
Copy link
Contributor

dg0yt commented May 12, 2022

Still defect: #20190 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants