File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -500,9 +500,10 @@ endif()
500500# Use C++17
501501target_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
503505if (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
626627set (LIBMEXCLASS_PROXY_INSTALLED_DIR +libmexclass/+proxy)
627628install (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 "*.*"
You can’t perform that action at this time.
0 commit comments