Build: Update required compilers to current debian stable and VS 2022

GCC: 10
Clang: 11
MSVC: 2022
This commit is contained in:
Shauren
2023-01-01 00:26:53 +01:00
parent ba9bbbc9d0
commit 0a1b40241a
5 changed files with 11 additions and 27 deletions

View File

@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.8)
project(protoc_bnet)
set(CXX_EXTENSIONS OFF)
set(CMAKE_CXX_EXTENSIONS OFF)
find_package(Protobuf REQUIRED)
@@ -21,20 +21,7 @@ include_directories(${CMAKE_SOURCE_DIR} ${PROTOBUF_INCLUDE_DIRS})
add_executable(protoc-gen-bnet ${SOURCE_FILES})
target_compile_features(protoc-gen-bnet
PUBLIC
cxx_std_17
cxx_alias_templates
cxx_auto_type
cxx_constexpr
cxx_decltype
cxx_decltype_auto
cxx_final
cxx_lambdas
cxx_generic_lambdas
cxx_variadic_templates
cxx_defaulted_functions
cxx_nullptr
cxx_trailing_return_types
cxx_return_type_deduction)
cxx_std_17)
target_link_libraries(protoc-gen-bnet ${PROTOBUF_PROTOC_LIBRARIES} ${PROTOBUF_LIBRARIES})