Skip to content

Commit

Permalink
Use all OpenEXR directories
Browse files Browse the repository at this point in the history
Signed-off-by: Larry Gritz <[email protected]>
  • Loading branch information
lgritz committed Mar 29, 2024
1 parent be3033b commit 69c482e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/cmake/build_OpenEXR.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,23 @@ set (OpenEXR_VERSION ${OpenEXR_LOCAL_BUILD_VERSION})
message (STATUS "In build_OpenEXR.cmake, OpenEXR_INCLUDES=${OPENEXR_INCLUDES}")
set (OPENEXR_INCLUDE_DIR "${OpenEXR_SOURCE_DIR}/src/lib/OpenEXR")
set (OPENEXRCORE_INCLUDE_DIR "${OpenEXR_SOURCE_DIR}/src/lib/OpenEXRCore")
set (OPENEXRUTIL_INCLUDE_DIR "${OpenEXR_SOURCE_DIR}/src/lib/OpenEXRUtil")
set (IEX_INCLUDE_DIR "${OpenEXR_SOURCE_DIR}/src/lib/Iex")
set (ILMTHREAD_INCLUDE_DIR "${OpenEXR_SOURCE_DIR}/src/lib/IlmThread")
set (OPENEXR_INCLUDES ${OPENEXR_INCLUDE_DIR}
${OPENEXRCORE_INCLUDE_DIR}
${OPENEXRUTIL_INCLUDE_DIR}
${IEX_INCLUDE_DIR}
${ILMTHREAD_INCLUDE_DIR}
${OpenEXR_SOURCE_DIR}/src/cmake)
message (STATUS "Resetting to OpenEXR_INCLUDES=${OPENEXR_INCLUDES}")

# Need links so that we can #include <OpenEXR/blah.h> because in the OpenEXR
# source, the headers are not in an OpenEXR subdirectory.
file (CREATE_LINK ${OPENEXR_INCLUDE_DIR} ${OPENEXR_INCLUDE_DIR}/OpenEXR SYMBOLIC)
file (CREATE_LINK ${OPENEXRCORE_INCLUDE_DIR} ${OPENEXRCORE_INCLUDE_DIR}/OpenEXR SYMBOLIC)
file (CREATE_LINK ${OPENEXRUTIL_INCLUDE_DIR} ${OPENEXRUTIL_INCLUDE_DIR}/OpenEXR SYMBOLIC)
file (CREATE_LINK ${IEX_INCLUDE_DIR} ${IEX_INCLUDE_DIR}/OpenEXR SYMBOLIC)
file (CREATE_LINK ${ILMTHREAD_INCLUDE_DIR} ${ILMTHREAD_INCLUDE_DIR}/OpenEXR SYMBOLIC)

proj_include_directories_prepend (${OPENEXR_INCLUDES})

0 comments on commit 69c482e

Please sign in to comment.