From 0ec3159fd0c924a2fd1ff4df2f2a5f30f3b16b8e Mon Sep 17 00:00:00 2001 From: Cameron Cawley Date: Tue, 31 Jul 2018 18:44:37 +0100 Subject: [PATCH] CMake: Fix compilation on systems without libm --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 805ba14e9c..60d9c48198 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -61,6 +61,7 @@ if(NOT WIN32) ) if(NOT M_LIBRARY) message(STATUS "math lib 'libm' not found; floating point support disabled") + set(M_LIBRARY "") endif() else() # not needed on windows