1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 10:32:48 +02:00

We do not need google test utils if we disabled LLVM_INCLUDE_TESTS

Fixes embedded uses of llvm where google testing framework is provided outside.

llvm-svn: 305088
This commit is contained in:
Vassil Vassilev 2017-06-09 16:37:39 +00:00
parent 91dddeed11
commit 9c6f15ec87

View File

@ -853,7 +853,6 @@ if( LLVM_INCLUDE_UTILS )
add_subdirectory(utils/not) add_subdirectory(utils/not)
add_subdirectory(utils/llvm-lit) add_subdirectory(utils/llvm-lit)
add_subdirectory(utils/yaml-bench) add_subdirectory(utils/yaml-bench)
add_subdirectory(utils/unittest)
else() else()
if ( LLVM_INCLUDE_TESTS ) if ( LLVM_INCLUDE_TESTS )
message(FATAL_ERROR "Including tests when not building utils will not work. message(FATAL_ERROR "Including tests when not building utils will not work.
@ -897,6 +896,10 @@ if( LLVM_INCLUDE_TESTS )
endif() endif()
add_subdirectory(test) add_subdirectory(test)
add_subdirectory(unittests) add_subdirectory(unittests)
if( LLVM_INCLUDE_UTILS )
add_subdirectory(utils/unittest)
endif()
if (WIN32) if (WIN32)
# This utility is used to prevent crashing tests from calling Dr. Watson on # This utility is used to prevent crashing tests from calling Dr. Watson on
# Windows. # Windows.