Skip to content

Commit

Permalink
Make local build with Imath (AcademySoftwareFoundation#1219)
Browse files Browse the repository at this point in the history
```
add_subdirectory(${IMATH_ROOT} Imath)
add_subdirectory(${OPENEXR_ROOT} OpenEXR)
```

Signed-off-by: Timothy Lyanguzov <timothy.lyanguzov@sap.com>
  • Loading branch information
theta682 authored and cary-ilm committed Apr 2, 2022
1 parent 891ef01 commit 29d63d0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cmake/OpenEXRSetup.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -291,4 +291,14 @@ if(NOT TARGET Imath::Imath AND NOT Imath_FOUND)
endif()
else()
message(STATUS "Using Imath from ${Imath_DIR}")
# local build
# add_subdirectory(${IMATH_ROOT} Imath)
# add_subdirectory(${OPENEXR_ROOT} OpenEXR)
if(NOT TARGET Imath::ImathConfig AND TARGET Imath AND TARGET ImathConfig)
get_target_property(imathinc Imath INTERFACE_INCLUDE_DIRECTORIES)
get_target_property(imathconfinc ImathConfig INTERFACE_INCLUDE_DIRECTORIES)
list(APPEND imathinc ${imathconfinc})
set(IMATH_HEADER_ONLY_INCLUDE_DIRS ${imathinc})
message(STATUS "Imath interface dirs ${IMATH_HEADER_ONLY_INCLUDE_DIRS}")
endif()
endif()

0 comments on commit 29d63d0

Please sign in to comment.