VMCore/CMakeLists.txt: [CMake][MSVC] Add "/Og-" to Function.cpp on msvc10. Otherwise...
[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   DebugLoc.cpp
12   Dominators.cpp
13   Function.cpp
14   GCOV.cpp
15   GVMaterializer.cpp
16   Globals.cpp
17   IRBuilder.cpp
18   InlineAsm.cpp
19   Instruction.cpp
20   Instructions.cpp
21   IntrinsicInst.cpp
22   LLVMContext.cpp
23   LLVMContextImpl.cpp
24   LeakDetector.cpp
25   Metadata.cpp
26   Module.cpp
27   Pass.cpp
28   PassManager.cpp
29   PassRegistry.cpp
30   PrintModulePass.cpp
31   Type.cpp
32   Use.cpp
33   User.cpp
34   Value.cpp
35   ValueSymbolTable.cpp
36   ValueTypes.cpp
37   Verifier.cpp
38   )
39
40 # Workaround: It takes over 20 minutes to compile with msvc10.
41 # FIXME: Suppressing optimizations to core libraries would not be good thing.
42 if( MSVC_VERSION EQUAL 1600 )
43 set_property(
44   SOURCE Function.cpp
45   PROPERTY COMPILE_FLAGS "/Og-"
46   )
47 endif()