Conversation
e5691fc to
1577238
Compare
Codecov Report
@@ Coverage Diff @@
## master #432 +/- ##
=======================================
Coverage 94.37% 94.37%
=======================================
Files 189 189
Lines 8410 8410
=======================================
Hits 7937 7937
Misses 473 473
|
| endif() | ||
| if(VCPKG_TARGET_TRIPLET MATCHES "^.*windows-static$") | ||
| set(CMAKE_MSVC_RUNTIME_LIBRARY | ||
| "MultiThreaded$<$<CONFIG:Debug>:Debug>" |
There was a problem hiding this comment.
These codes mean set CMAKE_MSVC_RUNTIME_LIBRARY to MultiThreadedDebug when CMAKE_BUILD_TYPE is Debug , otherwise set CMAKE_MSVC_RUNTIME_LIBRARY to MultiThreaded . Just like https://github.com/microsoft/vcpkg/blob/master/scripts/toolchains/windows.cmake#L3 in vcpkg.
These codes are a old patch to compact for both x64/x86-windows-static and x64/x86-windows-static-md and can be replaced by the new codes set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>$<$<STREQUAL:${VCPKG_CRT_LINKAGE},dynamic>:DLL>" CACHE STRING "") now. I will update them later.
There was a problem hiding this comment.
@maxgolov I have already update the cmake script and rebased from master again.
There was a problem hiding this comment.
It looks good to me, but I'd like (selfishly) merge my way older PR first ( #374 ), that older one is a bigger PR that does changes in many cmake files. So if we merge this current PR, then yet again I would run into conflicts and have to spend yet another day to merge and retest.. sigh 😄
Maybe I can create another PR witch is based of maxgolov/nostd_stl ? |
|
@owt5008137 - No, it's now merged in the master. You're good. The changes look good to me in general. Thank you for your contribution! Would you be able to resolve the conflicts with the master and update the this PR? @jsuereth @alolita - we need review from someone outside of Microsoft on this. |
@maxgolov All conflicts are resolved. And I submit another commit to fix |
| include(GNUInstallDirs) | ||
| include(CMakePackageConfigHelpers) |
There was a problem hiding this comment.
Don't include these 2 for non-posix?
There was a problem hiding this comment.
The GNUInstallDirs module only defines some directory names to install. And CMakePackageConfigHelpers is used to generate the standardized cmake config files, they are used by find_package(NAME CONFIG) of cmake. These two modules are useful on both posix and non-posix platforms.
lalitb
left a comment
There was a problem hiding this comment.
LGTM. Thanks for adding install configurations.
|
@owt5008137 - Can you please rebase the branch with master, so that we can merge the PR. |
…_ROOT_PATH=<PROTOBUF INSTALL PREFIX DIR>``` with custom prebuilt protobuf. open-telemetry#424
…t with the same name as bazel
> Merge [open-telemetry#374](open-telemetry#374) and rebase from master again.
|
@jsuereth -this is cmake- specific, and reviewed by @maxgolov and @ThomsonTan . Please let us know if this is ok to merge. |
done |
…and-patch-dependencies Update otel/opentelemetry-collector Docker tag to v0.131.1
Add and install cmake config for all library targets and export target with the same name as bazel.
See #424