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() # ######################################################################################################################