build(qrcode): set CMAKE_POLICY_VERSION_MINIMUM for CMake 4 compatibility

This commit is contained in:
lxowalle
2026-11-05 16:00:52 +08:00
parent d7a9938092
commit 83f8b8d456

View File

@@ -1,4 +1,5 @@
set(CMAKE_POLICY_VERSION_MINIMUM 3.5 CACHE STRING "CMake policy version for ZXing compatibility")
set(version_str "2.3.0")
set(unzip_path "${DL_EXTRACTED_PATH}/zxing-cpp")
set(src_path "${unzip_path}/zxing-cpp-${version_str}")