mdbx-cmake: fix/refine --allow-multiple-definition as workaround for std::filesystem and LCC < 1.25.23

This commit is contained in:
Леонид Юрьев (Leonid Yuriev)
2022-04-22 23:03:58 +03:00
parent b327cafe1a
commit 42f1abd7e9
3 changed files with 15 additions and 2 deletions

View File

@@ -47,7 +47,7 @@ set_target_properties(mdbx_test PROPERTIES
target_setup_options(mdbx_test)
if(NOT MDBX_BUILD_CXX AND LIBCXX_FILESYSTEM)
if(CMAKE_COMPILER_IS_ELBRUSCXX AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 1.26.0
if(CMAKE_COMPILER_IS_ELBRUSCXX AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 1.25.23
AND NOT CMAKE_VERSION VERSION_LESS 3.13)
target_link_options(mdbx_test PRIVATE "-Wl,--allow-multiple-definition")
endif()