diff --git a/lib/Support/CMakeLists.txt b/lib/Support/CMakeLists.txt index 32b96fa379d..24a115e0157 100644 --- a/lib/Support/CMakeLists.txt +++ b/lib/Support/CMakeLists.txt @@ -145,6 +145,7 @@ if( NOT MSVC ) if ( LLVM_ENABLE_ZLIB AND HAVE_LIBZ ) set(system_libs ${system_libs} z) endif() + set(system_libs ${system_libs} m) endif( MINGW ) endif( NOT MSVC )