summaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2012-06-21 22:17:39 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2012-06-21 22:17:39 +0000
commitc2270a48e390b6ef970677f80df37c9c9fc3cc30 (patch)
treec82ff652988d4971993ec7dad3ff9bb6b28cd0b5 /unittests
parent4db98becf798a013ee00b82691af154e261d648e (diff)
downloadllvm-c2270a48e390b6ef970677f80df37c9c9fc3cc30.tar.gz
llvm-c2270a48e390b6ef970677f80df37c9c9fc3cc30.tar.bz2
llvm-c2270a48e390b6ef970677f80df37c9c9fc3cc30.tar.xz
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
Diffstat (limited to 'unittests')
-rw-r--r--unittests/VMCore/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/unittests/VMCore/CMakeLists.txt b/unittests/VMCore/CMakeLists.txt
index 04eabf0b9e..c7392a93ea 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}
)