Skip to content

Commit 5ccf493

Browse files
authored
Fix default value of OPENTELEMETRY_INSTALL_default. (#2062)
1 parent 211d9c9 commit 5ccf493

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ Increment the:
1919
[#2036](https://github.com/open-telemetry/opentelemetry-cpp/pull/2036)
2020
* [EXPORTER] GRPC endpoint scheme should take precedence over OTEL_EXPORTER_OTLP_TRACES_INSECURE
2121
[#2060](https://github.com/open-telemetry/opentelemetry-cpp/pull/2060)
22+
* [BUILD] Restore detfault value of `OPENTELEMETRY_INSTALL` to `ON` when it's on
23+
top level.[#2062](https://github.com/open-telemetry/opentelemetry-cpp/pull/2062)
2224

2325
Important changes:
2426

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,8 @@ option(WITH_GSL
118118

119119
option(WITH_ABSEIL "Whether to use Abseil for C++latest features" OFF)
120120

121+
set(OPENTELEMETRY_INSTALL_default ON)
121122
if(NOT CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
122-
set(OPENTELEMETRY_INSTALL_default ON)
123-
else()
124123
set(OPENTELEMETRY_INSTALL_default OFF)
125124
endif()
126125
option(OPENTELEMETRY_INSTALL "Whether to install opentelemetry targets"

0 commit comments

Comments
 (0)