Skip to content

Commit 9c48cb7

Browse files
committed
build gRPC from source
1 parent bb0ee69 commit 9c48cb7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

CMakeLists.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -500,9 +500,10 @@ endif()
500500
# Use C++17
501501
target_compile_features(${OPENTELEMETRY_PROXY_LIBRARY_NAME} PRIVATE cxx_std_17)
502502

503+
# runtime dependent libraries
504+
# gRPC runtime libraries for non-Windows are listed further below in the installation section
503505
if(WIN32)
504-
# runtime dependent libraries
505-
# The TARGET_FILE generator command is somehow returning the .lib file instead of .dll for Protobuf and Zlib.
506+
# The TARGET_FILE generator command is somehow returning the .lib file instead of .dll for Zlib.
506507
# As a result, we have to hardcode those library names instead.
507508
set(ZLIB_DLL $<$<CONFIG:Debug>:zlibd1.dll>$<$<CONFIG:Release>:zlib1.dll>)
508509
set(OPENTELEMETRY_PROXY_RUNTIME_LIBRARIES $<TARGET_FILE_DIR:ZLIB::ZLIB>/../bin/${ZLIB_DLL})
@@ -625,7 +626,7 @@ install(FILES ${OTLP_MISC_FILES} DESTINATION .)
625626
# Install dependent runtime libraries
626627
set(LIBMEXCLASS_PROXY_INSTALLED_DIR +libmexclass/+proxy)
627628
install(FILES ${OPENTELEMETRY_PROXY_RUNTIME_LIBRARIES} DESTINATION ${LIBMEXCLASS_PROXY_INSTALLED_DIR})
628-
if(WITH_OTLP_GRPC)
629+
if(UNIX AND WITH_OTLP_GRPC)
629630
install(DIRECTORY ${GRPC_INSTALL_LIB_DIR}/ DESTINATION ${LIBMEXCLASS_PROXY_INSTALLED_DIR}
630631
FILES_MATCHING
631632
PATTERN "*.*"

0 commit comments

Comments
 (0)