From f488d84dc738eae1f28c322c2e22f0d8fb7ea541 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B5=D0=BE=D0=BD=D0=B8=D0=B4=20=D0=AE=D1=80=D1=8C?= =?UTF-8?q?=D0=B5=D0=B2=20=28Leonid=20Yuriev=29?= Date: Tue, 28 Oct 2025 23:49:17 +0300 Subject: [PATCH] mdbx-cmake: cleanup from linking with `libm`. --- CMakeLists.txt | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 26b15a92..605fa0c7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -335,19 +335,6 @@ if(NOT APPLE endif() endif() -check_function_exists(pow NOT_NEED_LIBM) -if(NOT_NEED_LIBM) - set(LIB_MATH "") -else() - set(CMAKE_REQUIRED_LIBRARIES m) - check_function_exists(pow HAVE_LIBM) - if(HAVE_LIBM) - set(LIB_MATH m) - else() - message(FATAL_ERROR "No libm found for math support") - endif() -endif() - if(SUBPROJECT) if(NOT DEFINED BUILD_SHARED_LIBS) option(BUILD_SHARED_LIBS "Build shared libraries (DLLs)" OFF) @@ -1036,10 +1023,6 @@ if(MDBX_BUILD_TOOLS) target_setup_options(mdbx_${TOOL}) target_link_libraries(mdbx_${TOOL} ${TOOL_MDBX_LIB}) endforeach() - if(LIB_MATH) - target_link_libraries(mdbx_chk ${LIB_MATH}) - target_link_libraries(mdbx_stat ${LIB_MATH}) - endif() endif() # ######################################################################################################################