Skip to content

Commit

Permalink
Don't force C++ standard for user builds.
Browse files Browse the repository at this point in the history
This fixes build against C++17 enabled prebuilt dependencies.
  • Loading branch information
p-pautov committed Jul 23, 2024
1 parent 10215ee commit 4c24716
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ add_custom_command(
DEPENDS ${PROTOS} protobuf::protoc gRPC::grpc_cpp_plugin
VERBATIM)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_EXTENSIONS OFF)

if (NGX_OTEL_DEV)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_EXTENSIONS OFF)

add_compile_options(-Wall -Wtype-limits -Werror)
endif()

Expand Down

0 comments on commit 4c24716

Please sign in to comment.