blob: 9ab28329870455cc87cdaaed7bf17944cd57ce2d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
Source: arch linux
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8ff498d0..23f5c387 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -191,7 +191,7 @@ INCLUDE_DIRECTORIES(${TIFF_INCLUDE_DIR})
FIND_PACKAGE(PNG REQUIRED)
INCLUDE_DIRECTORIES(${PNG_INCLUDE_DIR})
-FIND_PACKAGE(OpenEXR REQUIRED)
+FIND_PACKAGE(OpenEXR CONFIG REQUIRED)
INCLUDE_DIRECTORIES(${OPENEXR_INCLUDE_DIR} "${OPENEXR_INCLUDE_DIR}/OpenEXR")
FIND_PACKAGE(GSL REQUIRED)
diff --git a/src/Libpfs/CMakeLists.txt b/src/Libpfs/CMakeLists.txt
index 80617998..ce3c746e 100644
--- a/src/Libpfs/CMakeLists.txt
+++ b/src/Libpfs/CMakeLists.txt
@@ -12,7 +12,7 @@ ADD_SUBDIRECTORY(colorspace)
ADD_SUBDIRECTORY(io)
ADD_LIBRARY(pfs STATIC ${LIBPFS_H} ${LIBPFS_HXX} ${LIBPFS_CPP})
-TARGET_LINK_LIBRARIES(pfs Qt5::Core Qt5::Gui Qt5::Widgets)
+TARGET_LINK_LIBRARIES(pfs Qt5::Core Qt5::Gui Qt5::Widgets OpenEXR::OpenEXR)
SET(LUMINANCE_MODULES_GUI ${LUMINANCE_MODULES_GUI} pfs PARENT_SCOPE)
SET(LUMINANCE_MODULES_CLI ${LUMINANCE_MODULES_CLI} pfs PARENT_SCOPE)
|