Skip to content

Commit

Permalink
We do not need google test utils if we disabled LLVM_INCLUDE_TESTS
Browse files Browse the repository at this point in the history
Fixes embedded uses of llvm where google testing framework is provided outside.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305088 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
vgvassilev committed Jun 9, 2017
1 parent c65472c commit 1fb874b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,6 @@ if( LLVM_INCLUDE_UTILS )
add_subdirectory(utils/not)
add_subdirectory(utils/llvm-lit)
add_subdirectory(utils/yaml-bench)
add_subdirectory(utils/unittest)
else()
if ( LLVM_INCLUDE_TESTS )
message(FATAL_ERROR "Including tests when not building utils will not work.
Expand Down Expand Up @@ -897,6 +896,10 @@ if( LLVM_INCLUDE_TESTS )
endif()
add_subdirectory(test)
add_subdirectory(unittests)
if( LLVM_INCLUDE_UTILS )
add_subdirectory(utils/unittest)
endif()

if (WIN32)
# This utility is used to prevent crashing tests from calling Dr. Watson on
# Windows.
Expand Down

0 comments on commit 1fb874b

Please sign in to comment.