diff options
| author | Bryant Wong <llvm-commits@xorshift.org> | 2017-01-08 00:33:30 +0000 |
|---|---|---|
| committer | Bryant Wong <llvm-commits@xorshift.org> | 2017-01-08 00:33:30 +0000 |
| commit | 04060ab619b8d1677badf946277a44f4bae37789 (patch) | |
| tree | 387908d25e2c0a2faf30ae5102199e86df0215ce | |
| parent | 83a807ebae495d012f1e2b36cb55994741257fb7 (diff) | |
| download | bcm5719-llvm-04060ab619b8d1677badf946277a44f4bae37789.tar.gz bcm5719-llvm-04060ab619b8d1677badf946277a44f4bae37789.zip | |
[libcxxabi] Enable tests by default in standalone.
Tests targets will now be enabled by default when building libcxxabi out of tree
(unless turned off with LIBCXXABI_INCLUDE_TESTS=OFF).
Differential Revision: https://reviews.llvm.org/D28450
llvm-svn: 291378
| -rw-r--r-- | libcxxabi/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libcxxabi/CMakeLists.txt b/libcxxabi/CMakeLists.txt index c7d84ce9677..66a0a3fce70 100644 --- a/libcxxabi/CMakeLists.txt +++ b/libcxxabi/CMakeLists.txt @@ -70,6 +70,10 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR) set(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}") set(PACKAGE_BUGREPORT "llvm-bugs@lists.llvm.org") + if (NOT DEFINED LLVM_INCLUDE_TESTS) + set(LLVM_INCLUDE_TESTS ON) + endif() + if(EXISTS ${LLVM_MAIN_SRC_DIR}/utils/lit/lit.py) set(LLVM_LIT ${LLVM_MAIN_SRC_DIR}/utils/lit/lit.py) else() |

