freebsd-ports/graphics/darktable/files/patch-src_CMakeLists.txt

11 lines
492 B
Text

--- src/CMakeLists.txt.orig 2023-12-14 19:44:41 UTC
+++ src/CMakeLists.txt
@@ -475,7 +475,7 @@ if(USE_OPENJPEG)
add_definitions("-DHAVE_OPENJPEG")
list(APPEND SOURCES "imageio/imageio_j2k.c")
- include_directories(SYSTEM ${OpenJPEG_INCLUDE_DIRS})
+ include_directories(BEFORE SYSTEM ${OpenJPEG_INCLUDE_DIRS})
list(APPEND LIBS ${OpenJPEG_LIBRARIES})
set(DT_SUPPORTED_EXTENSIONS ${DT_SUPPORTED_EXTENSIONS} j2c j2k jp2 jpc CACHE INTERNAL "")
endif(OpenJPEG_FOUND)