build: Fix the detection of the math library in the CMake file

This is a fix of commit 5631b9b952e6940c67d4b48c00882e99229aa31b
"build: Implement various improvements to the CMake file"
This commit is contained in:
Cosmin Truta 2025-06-11 21:38:01 +03:00
parent 3bca02e274
commit a5830bfcb1

View File

@ -147,7 +147,7 @@ if(UNIX
if(M_LIBRARY)
set(M_LIBRARY m)
else()
set(M_LIBRARY)
set(M_LIBRARY "")
endif()
else()
# libm is not available or not needed.