diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/openjpeg/third-party.diff | |
Diffstat (limited to 'vcpkg/ports/openjpeg/third-party.diff')
| -rw-r--r-- | vcpkg/ports/openjpeg/third-party.diff | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/vcpkg/ports/openjpeg/third-party.diff b/vcpkg/ports/openjpeg/third-party.diff new file mode 100644 index 0000000..4cc471b --- /dev/null +++ b/vcpkg/ports/openjpeg/third-party.diff @@ -0,0 +1,22 @@ +diff --git a/thirdparty/CMakeLists.txt b/thirdparty/CMakeLists.txt +index b136fff..05ca64a 100644 +--- a/thirdparty/CMakeLists.txt ++++ b/thirdparty/CMakeLists.txt +@@ -89,7 +89,7 @@ else(BUILD_THIRDPARTY) + message(STATUS "Your system seems to have a TIFF lib available, we will use it") + set(OPJ_HAVE_TIFF_H 1 PARENT_SCOPE) + set(OPJ_HAVE_LIBTIFF 1 PARENT_SCOPE) +- if(BUILD_STATIC_LIBS AND NOT BUILD_SHARED_LIBS) ++ if("${not_using_vcpkg}") + # Probably incorrect as PC_TIFF_STATIC_LIBRARIES will lack the path to the libraries + # and will only work if they are in system directories + set(TIFF_LIBNAME ${PC_TIFF_STATIC_LIBRARIES} PARENT_SCOPE) +@@ -131,7 +131,7 @@ else(BUILD_THIRDPARTY) + message(STATUS "Your system seems to have a LCMS2 lib available, we will use it") + set(OPJ_HAVE_LCMS2_H 1 PARENT_SCOPE) + set(OPJ_HAVE_LIBLCMS2 1 PARENT_SCOPE) +- if(BUILD_STATIC_LIBS AND NOT BUILD_SHARED_LIBS) ++ if("${not_using_vcpkg}") + # Probably incorrect as PC_LCMS2_STATIC_LIBRARIES will lack the path to the libraries + # and will only work if they are in system directories + set(LCMS_LIBNAME ${PC_LCMS2_STATIC_LIBRARIES} PARENT_SCOPE) |