From 0cd4edad57b366d9979ff5b46dacbfb5084e3e5e Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Fri, 7 Aug 2020 23:29:25 +1000 Subject: [PATCH] cmake: fixed macos/brew compile issue --- app/CMakeLists.txt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt index 6989e6862..987193fbd 100644 --- a/app/CMakeLists.txt +++ b/app/CMakeLists.txt @@ -131,9 +131,17 @@ target_include_directories( ${FFMPEG_INCLUDE_DIRS} ${OCIO_INCLUDE_DIRS} ${OIIO_INCLUDE_DIRS} - ${OPENEXR_INCLUDE_DIR} + + # HACK: Brew on macOS separates the OpenEXR and IlmBase headers while they seem to expect to be + # in the same folder. So we link to that folder directly here. + ${ILMBASE_INCLUDES}/OpenEXR + + ${OPENEXR_INCLUDES} ) +message("OpenEXR Includes: " ${OPENEXR_INCLUDES}) +message("ILMBASE Includes: " ${ILMBASE_INCLUDES}) + # Set link libraries target_link_libraries( ${OLIVE_TARGET}