mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-01 09:59:13 +08:00
8ccb84df72
* [scripts] update Boost ports generation script, fixes #35187 * [boost] remove obsolete patches and re-generate ports * update versions * [boost] remove redundant vcpkg_minimum_required * update versions * [scripts/boost] update dependencies to config/checks, review b2-options.cmake files * [boost-*] regenerate ports * [boost-locale] fix patch * update versions * [boost-serialization] fix checks * update version * [boost-*] better fixes related to the config checks * update version * [boost-cobalt] fix build * update versions * [liblas] Boost v1.84.0 requires C++11 * [pcl] fix Unix build * add versions * [vcpkg-cmake-get-vars] add CMAKE_<LANG>_COMPILER_VERSION * [boost-cobalt] detect compiler * [coin] force C++11 * [json5-parser] force C++11 * add versions * [boost-cobalt] exclude iOS and Android platforms due to C++ Concepts library is not supported * [gtsam] force C++11 * [kenlm] force C++11 * [quickfast] force C++11 * [liblas] force C++11 * update versions * [boost] re-generate port * update version * [kenlm] revert changes * [boost-cobalt] exclude OSX * update versions * [plc] remove useless patch after merge * update versions after merge --------- Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
25 lines
1008 B
CMake
25 lines
1008 B
CMake
list(APPEND B2_OPTIONS cxxstd=20)
|
|
|
|
set(unsupported_compiler FALSE)
|
|
|
|
if(VCPKG_DETECTED_CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR VCPKG_DETECTED_CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
|
|
if(VCPKG_DETECTED_CMAKE_CXX_COMPILER_VERSION VERSION_LESS "14")
|
|
set(unsupported_compiler TRUE)
|
|
endif()
|
|
if(VCPKG_DETECTED_CMAKE_CXX_COMPILER_VERSION VERSION_LESS "16")
|
|
list(APPEND B2_OPTIONS "boost.cobalt.pmr=boost-container")
|
|
endif()
|
|
elseif(VCPKG_DETECTED_CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
|
if(VCPKG_DETECTED_CMAKE_CXX_COMPILER_VERSION VERSION_LESS "10")
|
|
set(unsupported_compiler TRUE)
|
|
endif()
|
|
elseif(VCPKG_DETECTED_CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
|
|
if (VCPKG_DETECTED_MSVC_VERSION LESS "1930")
|
|
set(unsupported_compiler TRUE)
|
|
endif()
|
|
endif()
|
|
|
|
if(unsupported_compiler)
|
|
message(FATAL_ERROR "Boost.Cobalt is supported since Clang 14, GCC 10 and MSVC 19.30 (Visual Studio 2022). Detected compiler is ${VCPKG_DETECTED_CMAKE_CXX_COMPILER_ID} ${VCPKG_DETECTED_MSVC_VERSION}.")
|
|
endif()
|