aboutsummaryrefslogtreecommitdiff
path: root/mlir/CMakeLists.txt
diff options
context:
space:
mode:
authorMehdi Amini <joker.eph@gmail.com>2021-02-11 01:17:24 +0000
committerMehdi Amini <joker.eph@gmail.com>2021-02-11 01:17:49 +0000
commit09cfec62432993abde7829a88ce4793d8805ce4b (patch)
tree6f733696501e2b9e64eb1c175d47d454241560f5 /mlir/CMakeLists.txt
parentfa35c1f80f0ea080a7cbc581416929b0a654f25c (diff)
downloadllvm-09cfec62432993abde7829a88ce4793d8805ce4b.zip
llvm-09cfec62432993abde7829a88ce4793d8805ce4b.tar.gz
llvm-09cfec62432993abde7829a88ce4793d8805ce4b.tar.bz2
Fix CMake configuration for MLIR unittests
The CMake changes in 2aa1af9b1da to make it possible to build MLIR as a standalone project unfortunately disabled all unit-tests from the regular in-tree build.
Diffstat (limited to 'mlir/CMakeLists.txt')
-rw-r--r--mlir/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/mlir/CMakeLists.txt b/mlir/CMakeLists.txt
index 91ad37f..dc03756 100644
--- a/mlir/CMakeLists.txt
+++ b/mlir/CMakeLists.txt
@@ -133,6 +133,7 @@ add_subdirectory(lib)
add_subdirectory(lib/CAPI)
if (MLIR_INCLUDE_TESTS)
add_definitions(-DMLIR_INCLUDE_TESTS)
+ add_custom_target(MLIRUnitTests)
if (EXISTS ${LLVM_MAIN_SRC_DIR}/utils/unittest/googletest/include/gtest/gtest.h)
add_subdirectory(unittests)
else()