From b4793c488fadfa7836c453c96c769ed5bfc5ad2e Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Mon, 3 Nov 2014 10:38:26 +0000 Subject: [PATCH] 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 --- lib/Support/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) 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 )