Skip to content

Commit

Permalink
Simplify linking in CMake
Browse files Browse the repository at this point in the history
Signed-off-by: Timothy Lyanguzov <timothy.lyanguzov@sap.com>
  • Loading branch information
theta682 committed Jan 19, 2022
1 parent a29fa05 commit c5c805f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/OpenEXRCore/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ openexr_define_library(OpenEXRCore
# when building with an internal imath, this isn't generated until
# install time, so need to use private header only include path (we
# aren't linking to imath or anything c++)
if (TARGET Imath::ImathConfig)
if (TARGET ImathConfig)
target_link_libraries(OpenEXRCore PRIVATE ImathConfig)
elseif (TARGET Imath::ImathConfig)
target_link_libraries(OpenEXRCore PRIVATE Imath::ImathConfig)
else()
target_include_directories(OpenEXRCore PRIVATE ${IMATH_HEADER_ONLY_INCLUDE_DIRS})
Expand Down

0 comments on commit c5c805f

Please sign in to comment.