]> granicus.if.org Git - clang/commitdiff
[CMake] Don't build the libclang tests unless you're building libclang
authorChris Bieneman <beanz@apple.com>
Fri, 4 Dec 2015 23:12:19 +0000 (23:12 +0000)
committerChris Bieneman <beanz@apple.com>
Fri, 4 Dec 2015 23:12:19 +0000 (23:12 +0000)
This fixes a build issue reported by users at Apple.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@254797 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/CMakeLists.txt

index 6636d82db74d57b36b621ab018ecc53ee0ada87f..b85ec7e6dfa098c0a13194783fddb0c77c4a0920 100644 (file)
@@ -25,6 +25,6 @@ add_subdirectory(Sema)
 add_subdirectory(CodeGen)
 # FIXME: libclang unit tests are disabled on Windows due
 # to failures, mostly in libclang.VirtualFileOverlay_*.
-if(NOT WIN32) 
+if(NOT WIN32 AND CLANG_TOOL_LIBCLANG_BUILD
   add_subdirectory(libclang)
 endif()