From 37bbd87fe6134328b3bc6bcb71f8bfd71c3d5653 Mon Sep 17 00:00:00 2001 From: Cary Phillips Date: Sun, 21 May 2023 12:34:36 -0700 Subject: [PATCH] Don't find_library for libm to avoid absolute path in OpenEXRTargets.cmake Replication of #1376. Link against m instead of the complete path for libm. Signed-off-by: Cary Phillips --- cmake/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 6ebf5f5ab9..132f3ef4a7 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -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()