Skip to content

[libgeotiff] find_package(geotiff) does not work on Linux #15723

@Max-Manning

Description

@Max-Manning

Describe the bug
After using vcpkg to install libgeotiff on linux, Cmake is unable to find the package correctly. (Edit - I found that the same thing happens on windows as well.)

Environment

  • OS: Ubuntu 20.04 LTS
  • Compiler: GCC 9.3

To Reproduce
Steps to reproduce the behavior:

  1. ./vcpkg install libgeotiff
  2. Use find_package(geotiff CONFIG REQUIRED) in a CMakeLists.txt file.

Expected behavior
CMake finds libgeotiff.

Failure logs
After find_package(geotiff CONFIG REQUIRED), Cmake produces the following error:

CMake Error at /home/max/code/vcpkg/scripts/buildsystems/vcpkg.cmake:644 (_find_package):
  Could not find a configuration file for package "geoTIFF" that is
  compatible with requested version "".

  The following configuration files were considered but not accepted:

    /home/max/code/vcpkg/installed/x64-linux/share/GeoTIFF/geotiff-config.cmake, version: 1.6.0

Call Stack (most recent call first):
  CMakeLists.txt:6 (find_package)

Metadata

Metadata

Assignees

Labels

category:port-bugThe issue is with a library, which is something the port should already support

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions