aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2023-01-01 00:26:53 +0100
committerShauren <shauren.trinity@gmail.com>2023-01-01 00:26:53 +0100
commit0a1b40241a12b2b2f4549edf0ee263e91236145b (patch)
treed075da74ba9db89cfbaa83ffef8541ebcc687adb /contrib
parentba9bbbc9d0c3b80d8954ad6390d23ae3d0f804b2 (diff)
Build: Update required compilers to current debian stable and VS 2022
GCC: 10 Clang: 11 MSVC: 2022
Diffstat (limited to 'contrib')
-rw-r--r--contrib/protoc-bnet/CMakeLists.txt17
1 files changed, 2 insertions, 15 deletions
diff --git a/contrib/protoc-bnet/CMakeLists.txt b/contrib/protoc-bnet/CMakeLists.txt
index 1e07a00d140..d5c15804fe2 100644
--- a/contrib/protoc-bnet/CMakeLists.txt
+++ b/contrib/protoc-bnet/CMakeLists.txt
@@ -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})