mirror of
https://github.com/isar/libmdbx.git
synced 2025-10-18 00:02:48 +08:00
mdbx-cmake: add a few smoke-like tests.
This commit is contained in:
@@ -112,7 +112,10 @@ else()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(MDBX_AMALGAMATED_SOURCE AND DEFINED MDBX_ENABLE_TESTS AND MDBX_ENABLE_TESTS)
|
||||
if(NOT MDBX_AMALGAMATED_SOURCE)
|
||||
include(CTest)
|
||||
option(MDBX_ENABLE_TESTS "Build libmdbx tests." ${BUILD_TESTING})
|
||||
elseif(DEFINED MDBX_ENABLE_TESTS AND MDBX_ENABLE_TESTS)
|
||||
message(WARNING "MDBX_ENABLE_TESTS=${MDBX_ENABLE_TESTS}: But amalgamated source code don't includes tests.")
|
||||
set(MDBX_ENABLE_TESTS OFF)
|
||||
endif()
|
||||
|
Reference in New Issue
Block a user