mdbx-cmake: удаление двойной проверки версии MSVC.

This commit is contained in:
Леонид Юрьев (Leonid Yuriev) 2024-12-04 23:50:33 +03:00
parent 367a118a8f
commit d1b2ec0489

View File

@ -304,8 +304,10 @@ include(GNUInstallDirs)
if(CMAKE_C_COMPILER_ID STREQUAL "MSVC" AND MSVC_VERSION LESS 1900) if(CMAKE_C_COMPILER_ID STREQUAL "MSVC" AND MSVC_VERSION LESS 1900)
message( message(
SEND_ERROR "MSVC compiler ${MSVC_VERSION} is too old for building MDBX." SEND_ERROR
" At least 'Microsoft Visual Studio 2015' is required.") "MSVC compiler ${MSVC_VERSION} is too old for building MDBX."
" At least \"Microsoft C/C++ Compiler\" version 19.0.24234.1 (Visual Studio 2015 Update 3) is required."
)
endif() endif()
if(NOT DEFINED THREADS_PREFER_PTHREAD_FLAG) if(NOT DEFINED THREADS_PREFER_PTHREAD_FLAG)
@ -946,13 +948,7 @@ else()
STATUS "Use C${MDBX_C_STANDARD} for libmdbx but C++ portion is disabled") STATUS "Use C${MDBX_C_STANDARD} for libmdbx but C++ portion is disabled")
endif() endif()
if(SUBPROJECT AND MSVC) if(MSVC)
if(MSVC_VERSION LESS 1900)
message(
FATAL_ERROR
"At least \"Microsoft C/C++ Compiler\" version 19.0.24234.1 (Visual Studio 2015 Update 3) is required."
)
endif()
add_compile_options("/utf-8") add_compile_options("/utf-8")
endif() endif()