Skip to content

FindProj not working as expected #16906

@mathisloge

Description

@mathisloge

so i've got a problem at #14628 .
Proj is currently at version 7.2.0 and it should be supported as stated in https://proj.org/development/cmake.html to use find_package(PROJ REQUIRED) however when i'm using it like that I'm getting the following error:

CMake Error at D:/dev/vcpkg_mapnik/scripts/buildsystems/vcpkg.cmake:861 (_find_package):
  By not providing "FindPROJ.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "PROJ", but
  CMake did not find one.

  Could not find a package configuration file provided by "PROJ" with any of
  the following names:

    PROJConfig.cmake
    proj-config.cmake

  Add the installation prefix of "PROJ" to CMAKE_PREFIX_PATH or set
  "PROJ_DIR" to a directory containing one of the above files.  If "PROJ"
  provides a separate development package or SDK, be sure it has been
  installed.
Call Stack (most recent call first):
  cmake/MapnikFindPackage.cmake:18 (find_package)
  CMakeLists.txt:209 (mapnik_find_package)

If I'm building proj without vcpgk this will work, so there have to be a bug in the portfile of proj?

Metadata

Metadata

Assignees

Labels

category:port-featureThe issue is with a library, which is requesting new capabilities that didn’t existcategory:port-updateThe issue is with a library, which is requesting update new revision

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions