Skip to content

Commit

Permalink
Move check before add_subdirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
tobim committed Oct 20, 2024
1 parent 0875c09 commit 4fcdbf2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
5 changes: 4 additions & 1 deletion api/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ add_subdirectory(metrics)
add_subdirectory(logs)
add_subdirectory(common)
add_subdirectory(baggage)
add_subdirectory(singleton)

if(NOT OPENTELEMETRY_SKIP_DYNAMIC_LOADING_TESTS)
add_subdirectory(singleton)
endif()
4 changes: 0 additions & 4 deletions api/test/singleton/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0

if(OPENTELEMETRY_SKIP_DYNAMIC_LOADING_TESTS)
return()
endif()

include(GoogleTest)

# Header only singletons are not available in windows yet.
Expand Down
5 changes: 4 additions & 1 deletion examples/plugin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@
# SPDX-License-Identifier: Apache-2.0

add_subdirectory(load)
add_subdirectory(plugin)

if(NOT OPENTELEMETRY_SKIP_DYNAMIC_LOADING_TESTS)
add_subdirectory(plugin)
endif()
4 changes: 0 additions & 4 deletions examples/plugin/plugin/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0

if(OPENTELEMETRY_SKIP_DYNAMIC_LOADING_TESTS)
return()
endif()

add_library(example_plugin SHARED tracer.cc factory_impl.cc)
target_link_libraries(example_plugin opentelemetry_api)

0 comments on commit 4fcdbf2

Please sign in to comment.