Don't force C++ standard for user builds.
This fixes build against C++17 enabled prebuilt dependencies.
This commit is contained in:
parent
5c736bd507
commit
1ac41dcd9b
1 changed files with 3 additions and 3 deletions
|
|
@ -118,10 +118,10 @@ add_custom_command(
|
||||||
DEPENDS ${PROTOS} protobuf::protoc gRPC::grpc_cpp_plugin
|
DEPENDS ${PROTOS} protobuf::protoc gRPC::grpc_cpp_plugin
|
||||||
VERBATIM)
|
VERBATIM)
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 11)
|
|
||||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
|
||||||
|
|
||||||
if (NGX_OTEL_DEV)
|
if (NGX_OTEL_DEV)
|
||||||
|
set(CMAKE_CXX_STANDARD 11)
|
||||||
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||||
|
|
||||||
add_compile_options(-Wall -Wtype-limits -Werror)
|
add_compile_options(-Wall -Wtype-limits -Werror)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue