--- ./zxing.cmake.orig 2026-07-07 08:03:26.000000000 -0500 +++ ./zxing.cmake 2026-07-07 16:14:49.841306907 -0500 @@ -4,26 +4,8 @@ add_library(stb::stb INTERFACE IMPORTED) target_include_directories(stb::stb INTERFACE ${STB_IMAGE_INCLUDE_DIR}) else() - unset (STB_FOUND CACHE) - - if (ZXING_DEPENDENCIES STREQUAL "AUTO") - find_package(PkgConfig) - pkg_check_modules (STB IMPORTED_TARGET stb) - elseif (ZXING_DEPENDENCIES STREQUAL "LOCAL") - find_package(PkgConfig REQUIRED) - pkg_check_modules (STB REQUIRED IMPORTED_TARGET stb) - endif() - - if (NOT STB_FOUND) - include(FetchContent) - FetchContent_Declare (stb - GIT_REPOSITORY https://github.com/nothings/stb.git) - FetchContent_MakeAvailable (stb) - add_library(stb::stb INTERFACE IMPORTED) - target_include_directories(stb::stb INTERFACE ${stb_SOURCE_DIR}) - else() - add_library(stb::stb ALIAS PkgConfig::STB) - endif() + add_library(stb::stb INTERFACE IMPORTED) + target_include_directories(stb::stb INTERFACE /usr/include/stb) endif() endmacro()