mirror of
https://github.com/isar/libmdbx.git
synced 2025-10-17 13:42:47 +08:00
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user