From: NAKAMURA Takumi Date: Thu, 21 Jun 2012 22:17:39 +0000 (+0000) Subject: llvm/unittests/VMCore/CMakeLists.txt: Introduce LLVM_OPTIONAL_SOURCES here, too. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=c2270a48e390b6ef970677f80df37c9c9fc3cc30;p=oota-llvm.git 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 --- diff --git a/unittests/VMCore/CMakeLists.txt b/unittests/VMCore/CMakeLists.txt index 04eabf0b9ee..c7392a93ea2 100644 --- a/unittests/VMCore/CMakeLists.txt +++ b/unittests/VMCore/CMakeLists.txt @@ -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} )