From: Peter Collingbourne Date: Mon, 3 Nov 2014 10:38:26 +0000 (+0000) Subject: CMake: Add libm to list of system libs printed by llvm-config. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=b4793c488fadfa7836c453c96c769ed5bfc5ad2e CMake: Add libm to list of system libs printed by llvm-config. This is required by the interpreter library, and also matches the autoconf behavior. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221147 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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 )