Skip to content

Commit

Permalink
fix building pci sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterPetrik committed Aug 23, 2023
1 parent 8b79653 commit 4b9efe8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vcpkg-overlay/ports/gdal/portfile.cmake
Expand Up @@ -61,6 +61,12 @@ endif()

string(REPLACE "dynamic" "" qhull_target "Qhull::qhull${VCPKG_LIBRARY_LINKAGE}_r")

# PCIDSK does not add compile interface defininions!
# do this instead of patching for now
# https://github.com/OSGeo/gdal/blob/af5b75ecc6b8d3cef36f2b6fecf085319d39a546/frmts/pcidsk/sdk/CMakeLists.txt#L84
string(APPEND VCPKG_C_FLAGS "-DRENAME_INTERNAL_LIBJPEG_SYMBOLS")
string(APPEND VCPKG_CXX_FLAGS "-DRENAME_INTERNAL_LIBJPEG_SYMBOLS")

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
Expand Down

0 comments on commit 4b9efe8

Please sign in to comment.