CMake: Add libm to list of system libs printed by llvm-config.
authorPeter Collingbourne <peter@pcc.me.uk>
Mon, 3 Nov 2014 10:38:26 +0000 (10:38 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Mon, 3 Nov 2014 10:38:26 +0000 (10:38 +0000)
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

index 32b96fa379deb6dcf4139b2ec813af2e60c60c3b..24a115e0157f58c2f4367f05a71e49398c2177ac 100644 (file)
@@ -145,6 +145,7 @@ if( NOT MSVC )
     if ( LLVM_ENABLE_ZLIB AND HAVE_LIBZ )
       set(system_libs ${system_libs} z)
     endif()
     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 )
 
   endif( MINGW )
 endif( NOT MSVC )