diff --git a/llvm/cmake/config-ix.cmake b/llvm/cmake/config-ix.cmake index 777cfd628a84..90e5d327c757 100644 --- a/llvm/cmake/config-ix.cmake +++ b/llvm/cmake/config-ix.cmake @@ -13,7 +13,7 @@ include(CheckCCompilerFlag) include(CheckCompilerVersion) include(HandleLLVMStdlib) -if( UNIX AND NOT (BEOS OR HAIKU) ) +if( UNIX AND NOT (APPLE OR BEOS OR HAIKU) ) # Used by check_symbol_exists: list(APPEND CMAKE_REQUIRED_LIBRARIES "m") endif()