From e7921b3278cc604081db47b50c8991ab3e0462d2 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Sat, 18 Oct 2025 20:30:30 +0100 Subject: [PATCH] Fix inclusion of libm. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d6bf3b1..f18fc74 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -287,9 +287,9 @@ endif() # Check for math library include(CheckLibraryExists) -check_library_exists(m log "" HAVE_LIB_M) +check_library_exists(m cos "" HAVE_LIB_M) if(HAVE_LIB_M) - TARGET_LINK_LIBRARIES_WHOLE_ARCHIVE(aaruformat m) + target_link_libraries(aaruformat m) endif() # Find Doxygen for documentation generation