-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix libcmt/libcmtd.lib link warning #1338
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -81,7 +81,7 @@ jobs: | |
WindowsX86_Release_MapFiles_UnitTests: | ||
OSVmImage: 'windows-2019' | ||
vcpkg.deps: 'cmocka' | ||
VCPKG_DEFAULT_TRIPLET: 'x86-windows-static' | ||
VCPKG_DEFAULT_TRIPLET: 'x86-windows-static-md' | ||
build.args: '-DPRECONDITIONS=OFF -DUNIT_TESTING=ON -DLOGGING=OFF' | ||
CMAKE_GENERATOR: 'Visual Studio 16 2019' | ||
CMAKE_GENERATOR_PLATFORM: Win32 | ||
|
@@ -169,7 +169,7 @@ jobs: | |
Windows_Preconditions_UnitTests_Samples: | ||
OSVmImage: 'windows-2019' | ||
vcpkg.deps: 'curl[winssl] paho-mqtt cmocka' | ||
VCPKG_DEFAULT_TRIPLET: 'x64-windows-static' | ||
VCPKG_DEFAULT_TRIPLET: 'x64-windows-static-md' | ||
build.args: '-DTRANSPORT_CURL=ON -DTRANSPORT_PAHO=ON -DAZ_PLATFORM_IMPL=WIN32 -DUNIT_TESTING=ON -DLOGGING=OFF' | ||
CMAKE_GENERATOR: 'Visual Studio 16 2019' | ||
CMAKE_GENERATOR_PLATFORM: x64 | ||
|
@@ -215,7 +215,7 @@ jobs: | |
Windows_Release_MapFiles: | ||
OSVmImage: 'windows-2019' | ||
vcpkg.deps: '' | ||
VCPKG_DEFAULT_TRIPLET: 'x64-windows-static' | ||
VCPKG_DEFAULT_TRIPLET: 'x64-windows-static-md' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does it make sense to use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is not. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider updating references |
||
build.args: '-DPRECONDITIONS=OFF -DLOGGING=OFF' | ||
CMAKE_GENERATOR: 'Visual Studio 16 2019' | ||
CMAKE_GENERATOR_PLATFORM: x64 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,5 +24,4 @@ add_cmocka_test(az_iot_hub_test SOURCES | |
az_iot_common | ||
az_iot_hub | ||
az_core | ||
${PAL} | ||
) |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,5 +21,4 @@ add_cmocka_test(az_iot_provisioning_test SOURCES | |
az_iot_common | ||
az_iot_provisioning | ||
az_core | ||
${PAL} | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does
-md
mean in this context and how does that fix the underlying issue?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't looked too closely, but this might be interesting to follow up to understand why:
microsoft/vcpkg#1131 (comment)
I wonder if the issue is with the
static
part or the-md
part.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@barcharcraz - can you please take a look at this as well and share your thoughts.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That thread is from 2017. Probably there were issues back then. And also I can see that these triplets were added to the officiale vcpkg repo on February, so maybe there were other issues at a time. But now it is there. microsoft/vcpkg@71a9def. Right now, it seems permanent and I don't see why we can't use it.
The reason why we were getting the warning was that we built our SDK with dynamic runtime, but cmocka was built with a reference to static runtime, and we were inking them together, and that is what the warning was telling us. Now we build cmocka with the same runtime as our SDK, so now they are consistent, and there is no warning anymore.