CMake: Fix compilation on systems without libm
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 805ba14..60d9c48 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -61,6 +61,7 @@
   )
   if(NOT M_LIBRARY)
     message(STATUS "math lib 'libm' not found; floating point support disabled")
+    set(M_LIBRARY "")
   endif()
 else()
   # not needed on windows