From 3458534f11417e0269401346e98331a9282c8573 Mon Sep 17 00:00:00 2001 From: Oscar Fuentes Date: Sun, 2 Jan 2011 19:32:31 +0000 Subject: [PATCH] A workaround for a bug in cmake 2.8.3 diagnosed on PR 8885. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122706 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/Target/X86/CMakeLists.txt b/lib/Target/X86/CMakeLists.txt index 036dbcda214..facdfd51b15 100644 --- a/lib/Target/X86/CMakeLists.txt +++ b/lib/Target/X86/CMakeLists.txt @@ -41,6 +41,11 @@ set(sources ) if( CMAKE_CL_64 ) + # A workaround for a bug in cmake 2.8.3. See PR 8885. + if( CMAKE_VERSION STREQUAL "2.8.3" ) + include(CMakeDetermineCompilerId) + endif() + # end of workaround. enable_language(ASM_MASM) ADD_CUSTOM_COMMAND( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/X86CompilationCallback_Win64.obj