This is what the autotools builds do.
$(MATH_LIB) was already referenced by lib/gvc/CmakeLists.txt, but it
was never given any value.
For Windows, this is not necessary since math functions are included
in the Universal C Runtime library (UCRT).
Without this, the rtest/test_examples.py gave errors like this for e.g. demo.c:
/usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib/libgvc.so: undefined reference to `atan2'
find_package(PangoCairo)
find_package(ZLIB)
+if (UNIX)
+ find_library(MATH_LIB m)
+endif ()
+
if (WIN32)
# Find Windows specific dependencies
find_package(RxSpencer REQUIRED)