Fix CMake math library.

Just in case we have a warning.

Change-Id: I5f2aabf5f4adaaf9ba6c4fbbbf352603259e8081
This commit is contained in:
Vincent Rabaud 2018-09-21 15:40:40 +02:00
parent 6aa3e8aaf3
commit 50d8345ae6

View File

@ -58,10 +58,10 @@ set(WEBP_HAVE_GL ${OPENGL_FOUND})
# We do not look for it as it is not found when # We do not look for it as it is not found when
# cross-compiling, while it is here. # cross-compiling, while it is here.
check_c_source_compiles(" check_c_source_compiles("
#include <math.h> #include <math.h>
int main(int argc, char** argv) { int main(int argc, char** argv) {
return pow(argc, 2.5); return (int)pow(argc, 2.5);
} }
" "
HAVE_MATH_LIBRARY HAVE_MATH_LIBRARY
) )