Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
meastp authored Jan 2, 2024
1 parent bdca4e3 commit 948f4f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/common/foo_library/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ set_target_version(common_foo_library)

if(DEFINED OPENTELEMETRY_BUILD_DLL)
message(STATUS "OPENTELEMETRY_BUILD_DLL for common_foo_library")
target_compile_definitions(common_foo_library PRIVATE OPENTELEMETRY_BUILD_IMPORT_DLL=1)
target_link_libraries(common_foo_library opentelemetry_cpp)
else()
target_link_libraries(common_foo_library PUBLIC ${CMAKE_THREAD_LIBS_INIT}
Expand Down

0 comments on commit 948f4f1

Please sign in to comment.