mdbx: explicit checking for and warning about using unfit github's archives.

Related to https://github.com/erthink/libmdbx/issues/197 and https://github.community/t/disable-tarball
This commit is contained in:
Leonid Yuriev
2021-05-13 12:19:18 +03:00
parent 841fc15dd3
commit 7addfc8358
3 changed files with 35 additions and 9 deletions

View File

@@ -79,7 +79,13 @@ elseif(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/VERSION" AND
set(MDBX_AMALGAMATED_SOURCE TRUE)
set(MDBX_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
else()
message(FATAL_ERROR "Please use libmdbx as a git-submodule or the amalgamated source code")
message(FATAL_ERROR "\n"
"Please don't use tarballs nor zips which are automatically provided by Github! "
"These archives do not contain version information and thus are unfit to build libmdbx. "
"You can vote for ability of disabling auto-creation such unsuitable archives at https://github.community/t/disable-tarball\n"
"Instead of above, just clone the git repository, either download a tarball or zip with the properly amalgamated source core. "
"For embedding libmdbx use a git-submodule or the amalgamated source code.\n"
"Please, avoid using any other techniques.")
endif()
if(DEFINED PROJECT_NAME)