mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-30 22:47:16 +08:00
mdbx-cmake: fix for e2k-lcc 1.24
Change-Id: I5827d4a2526886ae37ad6fe342d5955594081b84
This commit is contained in:
parent
0fc2d39cce
commit
63bf01a60a
@ -73,23 +73,6 @@ if(CMAKE_CXX_COMPILER_LOADED AND CMAKE_CXX_COMPILER_ID MATCHES ".*[Cc][Ll][Aa][N
|
|||||||
set(CMAKE_COMPILER_IS_GNUCXX OFF)
|
set(CMAKE_COMPILER_IS_GNUCXX OFF)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Hard coding the compiler version is ugly from cmake POV, but
|
|
||||||
# at least gives user a friendly error message. The most critical
|
|
||||||
# demand for C++ compiler is support of C++11 lambdas, added
|
|
||||||
# only in version 4.5 https://gcc.gnu.org/projects/cxx0x.html
|
|
||||||
if(CMAKE_COMPILER_IS_GNUCC)
|
|
||||||
if(CMAKE_C_COMPILER_VERSION VERSION_LESS 4.5)
|
|
||||||
message(FATAL_ERROR "
|
|
||||||
Your GCC version is ${CMAKE_C_COMPILER_VERSION}, please update")
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
if(CMAKE_COMPILER_IS_GNUCXX)
|
|
||||||
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.5)
|
|
||||||
message(FATAL_ERROR "
|
|
||||||
Your G++ version is ${CMAKE_CXX_COMPILER_VERSION}, please update")
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(CMAKE_C_COMPILER_LOADED)
|
if(CMAKE_C_COMPILER_LOADED)
|
||||||
# Check for Elbrus lcc
|
# Check for Elbrus lcc
|
||||||
execute_process(COMMAND ${CMAKE_C_COMPILER} --version
|
execute_process(COMMAND ${CMAKE_C_COMPILER} --version
|
||||||
@ -138,6 +121,25 @@ if(CMAKE_CXX_COMPILER_LOADED)
|
|||||||
unset(tmp_lxx_probe_result)
|
unset(tmp_lxx_probe_result)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# Hard coding the compiler version is ugly from cmake POV, but
|
||||||
|
# at least gives user a friendly error message. The most critical
|
||||||
|
# demand for C++ compiler is support of C++11 lambdas, added
|
||||||
|
# only in version 4.5 https://gcc.gnu.org/projects/cxx0x.html
|
||||||
|
if(CMAKE_COMPILER_IS_GNUCC)
|
||||||
|
if(CMAKE_C_COMPILER_VERSION VERSION_LESS 4.5
|
||||||
|
AND NOT CMAKE_COMPILER_IS_ELBRUSC)
|
||||||
|
message(FATAL_ERROR "
|
||||||
|
Your GCC version is ${CMAKE_C_COMPILER_VERSION}, please update")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
if(CMAKE_COMPILER_IS_GNUCXX)
|
||||||
|
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.5
|
||||||
|
AND NOT CMAKE_COMPILER_IS_ELBRUSCXX)
|
||||||
|
message(FATAL_ERROR "
|
||||||
|
Your G++ version is ${CMAKE_CXX_COMPILER_VERSION}, please update")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
if(CMAKE_CL_64)
|
if(CMAKE_CL_64)
|
||||||
set(MSVC64 1)
|
set(MSVC64 1)
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user