mirror of
https://github.com/isar/libmdbx.git
synced 2024-12-28 02:58:49 +08:00
mdbx-cmake: исправление semver_provide()
для случая символических ссылок в путях.
This commit is contained in:
parent
ad0b374eb5
commit
4c5be88038
@ -403,9 +403,9 @@ macro(semver_provide name source_root_directory build_directory_for_json_output
|
|||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
set(_source_root "${source_root_directory}")
|
set(_source_root "${source_root_directory}")
|
||||||
if(NOT CMAKE_VERSION VERSION_LESS 3.20)
|
if(NOT CMAKE_VERSION VERSION_LESS 3.19)
|
||||||
cmake_path(NORMAL_PATH _git_root)
|
file(REAL_PATH "${_git_root}" _git_root)
|
||||||
cmake_path(NORMAL_PATH _source_root)
|
file(REAL_PATH "${_source_root}" _source_root)
|
||||||
endif()
|
endif()
|
||||||
if(_source_root STREQUAL _git_root AND EXISTS "${_git_root}/VERSION.json")
|
if(_source_root STREQUAL _git_root AND EXISTS "${_git_root}/VERSION.json")
|
||||||
message(
|
message(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user