libm is not required (and doesn't exist) on Windows
eyalroz opened this issue · comments
On Unix-like platforms, one has to specifically link with a libm.a
(or libm.so
etc.) to use the C standard library's math functionality. But - that is not true on all platforms, specifically not on Windows with certain compilers.. This breaks Windows builds with those compilers.
Reported by @valco1994 .
What remains to be done is to have CMake detect the case of libm-required-but-missing during build configuration. So - removing the bug label...
I found a solution via this question on StackOverflow (with some help in adapting it). Will commit soon to ensure it actually makes builds pass...