aboutsummaryrefslogtreecommitdiffstats
path: root/unittests/VMCore/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'unittests/VMCore/CMakeLists.txt')
-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 04eabf0..c7392a9 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}
)