--- ./CMakeLists.txt.orig	2021-12-08 16:43:22.784370693 +0530
+++ ./CMakeLists.txt	2021-12-08 16:44:08.814370676 +0530
@@ -118,9 +118,7 @@
   find_package(ZLIB)
 endif()
 
-if(UNIX)
-    find_library(MATH_LIB m)
-endif()
+set(MATH_LIB -lm)
 
 if(WIN32)
     # Find Windows specific dependencies
