diff options
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r-- | llvm/lib/Support/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Support/CMakeLists.txt b/llvm/lib/Support/CMakeLists.txt index 0eb4a61fd8f..bccbdfca4c4 100644 --- a/llvm/lib/Support/CMakeLists.txt +++ b/llvm/lib/Support/CMakeLists.txt @@ -23,7 +23,9 @@ elseif( CMAKE_HOST_UNIX ) if ( LLVM_ENABLE_ZLIB AND HAVE_LIBZ ) set(system_libs ${system_libs} z) endif() - set(system_libs ${system_libs} m) + if( UNIX AND NOT (BEOS OR HAIKU) ) + set(system_libs ${system_libs} m) + endif() endif( MSVC OR MINGW ) add_llvm_library(LLVMSupport |