unittests/CMakeLists.txt: Suppress building ValueMapTest on MSVC older than 10(VS2010).

MSVC9 and 8 cannot compile ValueMapTest.cpp due to their bug.
See issue#331418 in Visual Studio.

llvm-svn: 119782
This commit is contained in:
NAKAMURA Takumi 2010-11-19 03:19:32 +00:00
parent 1801996111
commit 7a953baa1d
1 changed files with 9 additions and 1 deletions

View File

@ -74,7 +74,7 @@ add_llvm_unittest(Transforms
Transforms/Utils/Cloning.cpp
)
add_llvm_unittest(VMCore
set(VMCoreSources
VMCore/ConstantsTest.cpp
VMCore/DerivedTypesTest.cpp
VMCore/InstructionsTest.cpp
@ -84,6 +84,14 @@ add_llvm_unittest(VMCore
VMCore/VerifierTest.cpp
)
# MSVC9 and 8 cannot compile ValueMapTest.cpp due to their bug.
# See issue#331418 in Visual Studio.
if(MSVC AND MSVC_VERSION LESS 1600)
list(REMOVE_ITEM VMCoreSources VMCore/ValueMapTest.cpp)
endif()
add_llvm_unittest(VMCore ${VMCoreSources})
set(LLVM_LINK_COMPONENTS
System
Support