llvm/unittests/VMCore/CMakeLists.txt: Introduce LLVM_OPTIONAL_SOURCES here, too.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Thu, 21 Jun 2012 22:17:39 +0000 (22:17 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Thu, 21 Jun 2012 22:17:39 +0000 (22:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158941 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/VMCore/CMakeLists.txt

index 04eabf0b9eeb7526a45fbc224f208d77e628359c..c7392a93ea2bb35e79fb51520b3f556adae3cee4 100644 (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}
   )