Skip to content

Fix issue causing problems for Windows build when linking in cpprest library

Erik Dahl requested to merge slb-master-edahl2-WindowsBuildcpprest into slb-master

Type of change

  • Bug Fix
  • Feature

Does this introduce a change in the core logic?

  • [No]

Does this introduce a change in the cloud provider implementation, if so which cloud?

  • AWS
  • Azure
  • GCP
  • IBM

Updates description?

Prevented output error messages like the following for projects linking in cpprestsdk when building on Windows:

CMake Error at C:/vcpkg/installed/x64-windows/share/cpprestsdk/cpprestsdk-targets.cmake:68 (set_target_properties): The link interface of target "cpprestsdk::cpprestsdk_zlib_internal" contains: ZLIB::ZLIB

but the target was not found. Possible reasons include: * There is a typo in the target name. * A find_package call is missing for an IMPORTED target. * An ALIAS target is missing.

Call Stack (most recent call first): C:/vcpkg/installed/x64-windows/share/cpprestsdk/cpprestsdk-config.cmake:25 (include) C:/vcpkg/scripts/buildsystems/vcpkg.cmake:859 (_find_package) src/cmake/import_cpprestsdk.cmake:50 (find_package) src/Logger/Gsm/CMakeLists.txt:1 (include) CMake Error at C:/vcpkg/installed/x64-windows/share/cpprestsdk/cpprestsdk-targets.cmake:75 (set_target_properties): The link interface of target "cpprestsdk::cpprestsdk_brotli_internal" contains: unofficial::brotli::brotlienc

but the target was not found. Possible reasons include: * There is a typo in the target name. * A find_package call is missing for an IMPORTED target. * An ALIAS target is missing.

Edited by Erik Dahl

Merge request reports

Loading