mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
skip adding add_check command if parent project already has one
This commit is contained in:
parent
b28f41250c
commit
eceb688c7f
@ -155,7 +155,11 @@ endif (TEST_COVERAGE)
|
||||
# Run tests with "make check"
|
||||
if (ENABLE_TESTS)
|
||||
message (STATUS "Tests are enabled")
|
||||
include (cmake/add_check.cmake)
|
||||
if (TARGET check)
|
||||
message (STATUS "Target check already exists")
|
||||
else ()
|
||||
include (cmake/add_check.cmake)
|
||||
endif ()
|
||||
endif (ENABLE_TESTS)
|
||||
|
||||
# Installation prefix
|
||||
|
Loading…
Reference in New Issue
Block a user