mirror of
https://github.com/isar/libmdbx.git
synced 2024-12-30 02:04:12 +08:00
mdbx-cmake: fix stdc++fs
linking for modern GCC/CLANG.
Change-Id: I3dc82d09594cb32a14f2ee6673badcf4f4e411eb
This commit is contained in:
parent
5374d06d92
commit
11b410dcfe
@ -772,14 +772,14 @@ endmacro(setup_compile_flags)
|
|||||||
if(CMAKE_CXX_COMPILER_LOADED)
|
if(CMAKE_CXX_COMPILER_LOADED)
|
||||||
# determine library for for std::filesystem
|
# determine library for for std::filesystem
|
||||||
set(LIBCXX_FILESYSTEM "")
|
set(LIBCXX_FILESYSTEM "")
|
||||||
if(CMAKE_COMPILER_IS_GNUCXX)
|
if(CMAKE_COMPILER_IS_CLANG)
|
||||||
if(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.3 AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9.0)
|
|
||||||
set(LIBCXX_FILESYSTEM "stdc++fs")
|
|
||||||
endif()
|
|
||||||
elseif(CMAKE_COMPILER_IS_CLANG)
|
|
||||||
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.0)
|
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.0)
|
||||||
set(LIBCXX_FILESYSTEM "c++experimental")
|
set(LIBCXX_FILESYSTEM "c++experimental")
|
||||||
else()
|
elseif(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9.0)
|
||||||
|
set(LIBCXX_FILESYSTEM "stdc++fs")
|
||||||
|
endif()
|
||||||
|
elseif(CMAKE_COMPILER_IS_GNUCXX)
|
||||||
|
if(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.3 AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9.0)
|
||||||
set(LIBCXX_FILESYSTEM "stdc++fs")
|
set(LIBCXX_FILESYSTEM "stdc++fs")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user