Index: llvm/trunk/cmake/modules/AddLLVM.cmake =================================================================== --- llvm/trunk/cmake/modules/AddLLVM.cmake +++ llvm/trunk/cmake/modules/AddLLVM.cmake @@ -1682,7 +1682,7 @@ XCODE_ATTRIBUTE_CODE_SIGN_ENTITLEMENTS ${ARG_ENTITLEMENTS} ) endif() - elseif(APPLE AND CMAKE_HOST_SYSTEM_NAME MATCHES APPLE) + elseif(APPLE AND CMAKE_HOST_SYSTEM_NAME MATCHES Darwin) if(NOT CMAKE_CODESIGN) set(CMAKE_CODESIGN xcrun codesign) endif()