From 1089c2c9baefb6cfff8e0688a25ee4033ba33aa5 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Fri, 31 Jan 2014 17:32:46 +0000 Subject: [CMake] Move libgtest for external projects. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200558 91177308-0d34-0410-b5e6-96231b3b80d8 --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7cfcdc9709..a741f3a6aa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -472,6 +472,10 @@ add_subdirectory(utils/not) add_subdirectory(utils/llvm-lit) add_subdirectory(utils/yaml-bench) +if(LLVM_INCLUDE_TESTS) + add_subdirectory(utils/unittest) +endif() + add_subdirectory(projects) if( LLVM_INCLUDE_TOOLS ) @@ -484,7 +488,6 @@ endif() if( LLVM_INCLUDE_TESTS ) add_subdirectory(test) - add_subdirectory(utils/unittest) add_subdirectory(unittests) if (MSVC) # This utility is used to prevent crashing tests from calling Dr. Watson on -- cgit v1.2.3