This commit updates the cmake check for `MATH_LIBRARY` and removes the
DEFINED operator for the if() command.
The motivation for this is that on windows if a parent project of ggml
calls find_library(MATH_LIBRARY) this could return
`MATH_LIBRARY-NOTFOUND` which will cause the if clause to be true.
Removing the DEFINED operator will work as intended will evaluate to
false, as specified by cmake if command docs:
```console
False if the constant is 0, OFF, NO, FALSE, N, IGNORE, NOTFOUND, the
empty string, or ends in the suffix -NOTFOUND.
```
This commit was originally opened in a PR against whisper.cpp, see link
below.
Refs: https://github.com/ggml-org/whisper.cpp/pull/4168
Refs: https://cmake.org/cmake/help/latest/command/if.html#constant