sist2-build/patches/fix-libraw.patch
2023-04-23 13:52:03 -04:00

20 lines
1.2 KiB
Diff

--- b/installed/x64-linux/share/libraw/librawTargets.cmake
+++ a/installed/x64-linux/share/libraw/librawTargets.cmake
@@ -60,7 +60,7 @@
set_target_properties(libraw::raw PROPERTIES
INTERFACE_COMPILE_DEFINITIONS "LIBRAW_NODLL"
+ INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include/libraw"
- INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/libraw"
INTERFACE_LINK_LIBRARIES "m;lcms2::lcms2;ZLIB::ZLIB;\$<\$<NOT:\$<CONFIG:DEBUG>>:${VCPKG_IMPORT_PREFIX}/lib/libjasper.a>;\$<\$<CONFIG:DEBUG>:${VCPKG_IMPORT_PREFIX}/debug/lib/libjasperd.a>;\$<\$<NOT:\$<CONFIG:DEBUG>>:${VCPKG_IMPORT_PREFIX}/lib/libjpeg.a>;\$<\$<CONFIG:DEBUG>:${VCPKG_IMPORT_PREFIX}/debug/lib/libjpeg.a>"
)
@@ -69,7 +69,7 @@
set_target_properties(libraw::raw_r PROPERTIES
INTERFACE_COMPILE_DEFINITIONS "LIBRAW_NODLL"
+ INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include/libraw"
- INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/libraw"
INTERFACE_LINK_LIBRARIES "m;lcms2::lcms2;ZLIB::ZLIB;\$<\$<NOT:\$<CONFIG:DEBUG>>:${VCPKG_IMPORT_PREFIX}/lib/libjasper.a>;\$<\$<CONFIG:DEBUG>:${VCPKG_IMPORT_PREFIX}/debug/lib/libjasperd.a>;\$<\$<NOT:\$<CONFIG:DEBUG>>:${VCPKG_IMPORT_PREFIX}/lib/libjpeg.a>;\$<\$<CONFIG:DEBUG>:${VCPKG_IMPORT_PREFIX}/debug/lib/libjpeg.a>"
)