Skip to content

Commit

Permalink
Update dropped changes from sample directory restructure (Azure#985)
Browse files Browse the repository at this point in the history
* PnP to IoT Plug and Play in README.md
* Add LNK4098 workaround into CMakeList.txt
  • Loading branch information
momuno authored Aug 5, 2020
1 parent 440d862 commit bc204d4
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion sdk/samples/iot/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -133,4 +133,20 @@ target_link_libraries(paho_iot_provisioning_sas_sample
az::iot::samples::common
)

endif() # TRANSPORT_PAHO
# Workaround for linker warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other libs
if (MSVC)
set_target_properties(
paho_iot_hub_c2d_sample
paho_iot_hub_methods_sample
paho_iot_hub_pnp_sample
paho_iot_hub_telemetry_sample
paho_iot_hub_sas_telemetry_sample
paho_iot_hub_twin_sample
paho_iot_provisioning_sample
paho_iot_provisioning_sas_sample
PROPERTIES LINK_FLAGS
"/NODEFAULTLIB:libcmtd.lib"
)
endif()

endif() # TRANSPORT_PAHO

0 comments on commit bc204d4

Please sign in to comment.