Skip to content

Commit

Permalink
Don't find_library for libm to avoid absolute path in OpenEXRTargets.…
Browse files Browse the repository at this point in the history
…cmake

Replication of AcademySoftwareFoundation#1376. Link against m instead of the complete path for libm.

Signed-off-by: Cary Phillips <[email protected]>
  • Loading branch information
cary-ilm committed May 21, 2023
1 parent b4899a6 commit 37bbd87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ else()
endif()

if (UNIX AND NOT APPLE AND NOT BEOS)
find_library(OPENEXR_EXTRA_MATH_LIB m)
set(OPENEXR_EXTRA_MATH_LIB m PARENT_SCOPE)
mark_as_advanced(OPENEXR_EXTRA_MATH_LIB)
endif()

Expand Down

0 comments on commit 37bbd87

Please sign in to comment.