Skip to content

Commit

Permalink
Fix issues #740 and #741
Browse files Browse the repository at this point in the history
Signed-off-by: owent <owent@tencent.com>
  • Loading branch information
owent authored and owent committed May 11, 2021
1 parent 5278e8c commit c0e2def
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 2 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ endif()

if(WITH_STL)
# Require at least C++17. C++20 is needed to avoid gsl::span
add_definitions(-DHAVE_CPP_STDLIB -DHAVE_GSL)

if(CMAKE_MINOR_VERSION VERSION_GREATER "3.18")
# Ask for 20, may get anything below
set(CMAKE_CXX_STANDARD 20)
Expand Down Expand Up @@ -130,7 +128,7 @@ if(WITH_OTLP)
set(protobuf_MODULE_COMPATIBLE ON)
find_package(Protobuf)
find_package(gRPC)
if((NOT protobuf_FOUND) OR (NOT gRPC_FOUND))
if((NOT Protobuf_FOUND) OR (NOT gRPC_FOUND))
if(WIN32 AND (NOT DEFINED CMAKE_TOOLCHAIN_FILE))
install_windows_deps()
endif()
Expand All @@ -142,7 +140,7 @@ if(WITH_OTLP)
include(${CMAKE_TOOLCHAIN_FILE})
endif()

if(NOT protobuf_FOUND)
if(NOT Protobuf_FOUND)
find_package(Protobuf REQUIRED)
endif()
if(NOT gRPC_FOUND)
Expand Down
2 changes: 2 additions & 0 deletions api/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ endif()

if(WITH_STL)
message("Building with standard library types...")
target_compile_definitions(opentelemetry_api INTERFACE HAVE_CPP_STDLIB
HAVE_GSL)
else()
message("Building with nostd types...")
endif()
2 changes: 1 addition & 1 deletion tools/vcpkg
Submodule vcpkg updated 5133 files

0 comments on commit c0e2def

Please sign in to comment.