Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 69cc61c

Browse files
authored
Rename cmake build flag WITH_OTPROTOCOL to WITH_OTLP (#382)
1 parent ca5eed0 commit 69cc61c

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

CMakeLists.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ if(NOT DEFINED CMAKE_CXX_STANDARD)
1010
set(CMAKE_CXX_STANDARD 11)
1111
endif()
1212

13-
option(WITH_OTPROTOCOL
14-
"Whether to include the OpenTelemetry Protocol in the SDK" OFF)
13+
option(WITH_OTLP "Whether to include the OpenTelemetry Protocol in the SDK" OFF)
1514

1615
option(WITH_PROMETHEUS "Whether to include the Prometheus Client in the SDK"
1716
OFF)
@@ -20,7 +19,7 @@ option(WITH_TESTS "Whether to enable tests" ON)
2019
option(WITH_EXAMPLES "Whether to build examples" ON)
2120

2221
set(WITH_PROTOBUF OFF)
23-
if(WITH_OTPROTOCOL)
22+
if(WITH_OTLP)
2423
set(WITH_PROTOBUF ON)
2524
endif()
2625

@@ -46,7 +45,7 @@ if(WITH_PROTOBUF)
4645
endif()
4746
endif()
4847

49-
if(WITH_OTPROTOCOL)
48+
if(WITH_OTLP)
5049
include(third_party/opentelemetry-proto/Protobuf.cmake)
5150
endif()
5251

ci/do_ci.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ elif [[ "$1" == "cmake.exporter.otprotocol.test" ]]; then
4444
cd "${BUILD_DIR}"
4545
rm -rf *
4646
cmake -DCMAKE_BUILD_TYPE=Debug \
47-
-DWITH_OTPROTOCOL=ON \
47+
-DWITH_OTLP=ON \
4848
-DCMAKE_CXX_FLAGS="-Werror" \
4949
"${SRC_DIR}"
5050
make

exporters/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
if(WITH_OTPROTOCOL)
1+
if(WITH_OTLP)
22
add_subdirectory(otlp)
33
endif()
44

0 commit comments

Comments
 (0)