mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-31 11:08:22 +08:00
mdbx-cmake: don't provide nor report package information if used as a subproject.
This commit is contained in:
parent
280fa99831
commit
99cfee6f4b
@ -940,6 +940,7 @@ endif()
|
|||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
|
if (NOT SUBPROJECT)
|
||||||
set(PACKAGE "libmdbx")
|
set(PACKAGE "libmdbx")
|
||||||
set(CPACK_PACKAGE_VERSION_MAJOR ${MDBX_VERSION_MAJOR})
|
set(CPACK_PACKAGE_VERSION_MAJOR ${MDBX_VERSION_MAJOR})
|
||||||
set(CPACK_PACKAGE_VERSION_MINOR ${MDBX_VERSION_MINOR})
|
set(CPACK_PACKAGE_VERSION_MINOR ${MDBX_VERSION_MINOR})
|
||||||
@ -947,5 +948,6 @@ set(CPACK_PACKAGE_VERSION_PATCH ${MDBX_VERSION_RELEASE})
|
|||||||
set(CPACK_PACKAGE_VERSION_COMMIT ${MDBX_VERSION_REVISION})
|
set(CPACK_PACKAGE_VERSION_COMMIT ${MDBX_VERSION_REVISION})
|
||||||
set(PACKAGE_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}.${CPACK_PACKAGE_VERSION_COMMIT}")
|
set(PACKAGE_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}.${CPACK_PACKAGE_VERSION_COMMIT}")
|
||||||
message(STATUS "libmdbx package version is ${PACKAGE_VERSION}")
|
message(STATUS "libmdbx package version is ${PACKAGE_VERSION}")
|
||||||
|
endif()
|
||||||
|
|
||||||
cmake_policy(POP)
|
cmake_policy(POP)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user