Skip to content

Commit

Permalink
fixup! cmake: Add libqrencode optional package support
Browse files Browse the repository at this point in the history
  • Loading branch information
hebasto committed Apr 21, 2024
1 parent 1f59037 commit 8fe37b0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmake/optional.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,13 @@ else()
endif()

if(WITH_GUI AND WITH_QRENCODE)
if(MSVC)
if(VCPKG_TARGET_TRIPLET)
# TODO: vcpkg fails to build libqrencode package due to
# the build error in its libiconv dependency.
# See: https://github.com/microsoft/vcpkg/issues/36924.
else()
cross_pkg_check_modules(libqrencode libqrencode IMPORTED_TARGET)
include(CrossPkgConfig)
cross_pkg_check_modules(libqrencode IMPORTED_TARGET libqrencode)
endif()
if(TARGET PkgConfig::libqrencode)
set_target_properties(PkgConfig::libqrencode PROPERTIES
Expand Down

0 comments on commit 8fe37b0

Please sign in to comment.