llvm/unittests/VMCore/CMakeLists.txt: Introduce LLVM_OPTIONAL_SOURCES here, too.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158941 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
NAKAMURA Takumi 2012-06-21 22:17:39 +00:00
parent 4db98becf7
commit c2270a48e3

View File

@ -22,6 +22,12 @@ if(MSVC AND MSVC_VERSION LESS 1600)
list(REMOVE_ITEM VMCoreSources ValueMapTest.cpp)
endif()
# HACK: Declare a couple of source files as optionally compiled to satisfy the
# missing-file-checker in LLVM's weird CMake build.
set(LLVM_OPTIONAL_SOURCES
ValueMapTest.cpp
)
add_llvm_unittest(VMCoreTests
${VMCoreSources}
)