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"
1 file changed