From f9e3d452466385e7ed4edb80b7f809952dcf450c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 20 Apr 2026 14:09:14 +0000 Subject: [PATCH 1/2] Fix missing libm link on Fedora: reuse LCMS2_MATH_LIB from feature detection Agent-Logs-Url: https://github.com/mm2/Little-CMS/sessions/3944c587-e6e0-4fa5-95f0-c815076ba51d Co-authored-by: mm2 <199618+mm2@users.noreply.github.com> --- cmake/Lcms2Library.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/Lcms2Library.cmake b/cmake/Lcms2Library.cmake index 63629609..dcde0ba1 100644 --- a/cmake/Lcms2Library.cmake +++ b/cmake/Lcms2Library.cmake @@ -71,9 +71,9 @@ function(_lcms2_apply_common_settings tgt) # libm (primarily needed on Linux). Make it PUBLIC so dependents (tools) # also link it, matching autotools *_DEPLIBS behavior. - find_library(_lcms2_math_lib m) - if(_lcms2_math_lib) - target_link_libraries(${tgt} PUBLIC "${_lcms2_math_lib}") + # Reuse the library path already detected by lcms2_detect_features(). + if(LCMS2_MATH_LIB) + target_link_libraries(${tgt} PUBLIC "${LCMS2_MATH_LIB}") endif() endfunction() From 00796a1667752469f5ec9f1c6caf9c785bbaf9a7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 20 Apr 2026 14:22:21 +0000 Subject: [PATCH 2/2] meson: propagate m_dep and threads_dep through liblcms2_dep Agent-Logs-Url: https://github.com/mm2/Little-CMS/sessions/bc8ce1c5-0673-48b8-a084-e38505fd0adf Co-authored-by: mm2 <199618+mm2@users.noreply.github.com> --- src/meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/src/meson.build b/src/meson.build index 13cb4b2d..a79bce1f 100644 --- a/src/meson.build +++ b/src/meson.build @@ -68,4 +68,5 @@ endif liblcms2_dep = declare_dependency( link_with: liblcms2_lib, include_directories: [inc_dirs, include_directories('.')], + dependencies: deps, )