Fix cmake failure from moving files around.
[oota-llvm.git] / lib / VMCore / CMakeLists.txt
1 set(LLVM_REQUIRES_RTTI 1)
2
3 add_llvm_library(LLVMCore
4   AsmWriter.cpp
5   Attributes.cpp
6   AutoUpgrade.cpp
7   BasicBlock.cpp
8   ConstantFold.cpp
9   Constants.cpp
10   Core.cpp
11   DebugInfo.cpp
12   DebugLoc.cpp
13   Dominators.cpp
14   Function.cpp
15   GCOV.cpp
16   GVMaterializer.cpp
17   Globals.cpp
18   IRBuilder.cpp
19   InlineAsm.cpp
20   Instruction.cpp
21   Instructions.cpp
22   IntrinsicInst.cpp
23   LLVMContext.cpp
24   LLVMContextImpl.cpp
25   LeakDetector.cpp
26   Metadata.cpp
27   Module.cpp
28   Pass.cpp
29   PassManager.cpp
30   PassRegistry.cpp
31   PrintModulePass.cpp
32   Type.cpp
33   Use.cpp
34   User.cpp
35   Value.cpp
36   ValueSymbolTable.cpp
37   ValueTypes.cpp
38   Verifier.cpp
39   )
40
41 # Workaround: It takes over 20 minutes to compile with msvc10.
42 # FIXME: Suppressing optimizations to core libraries would not be good thing.
43 if( MSVC_VERSION EQUAL 1600 )
44 set_property(
45   SOURCE Function.cpp
46   PROPERTY COMPILE_FLAGS "/Og-"
47   )
48 endif()
49
50 add_dependencies(LLVMCore intrinsics_gen)