Skip to content

PROJ_INCLUDE_DIR not leveraged at compile time by CMake #137

@jmckenna

Description

@jmckenna
  • using libgeotiff 1.7.4 & master
  • compiler is Visual Studio on Windows
  • CMake version 4.0.2
  • today's PROJ master
  • usual build process fails with Cannot open include file: 'proj.h': No such file or directory
    • -DPROJ_INCLUDE_DIR is passed to CMake as usual, so something seems to have changed in the source of libgeotiff, or CMake itself
    • all is well with libgeotiff 1.7.3 & previous releases
  • possibly related to CMake changes made through Automate release generation from tags and refactor CI #115
  • workaround: add the following to /CMakeLists.txt around line#114
IF(PROJ_FOUND)
  INCLUDE_DIRECTORIES(${PROJ_INCLUDE_DIR})
ENDIF()

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions