Source: libzstd Version: 1.5.4+dfsg2-3 Upstream requirement: cmake (>= 3.18): build/cmake/CMakeModules/AddZstdCompilationFlags.cmake:23: CHECK_LINKER_FLAG(C ${_flag} LD_FLAG_${varname})
https://cmake.org/cmake/help/latest/module/CheckLinkerFlag.html This line is added in zstd 1.5.4, and this command is added in cmake 3.1.8. debian source requirement: cmake (>= 3.24): debian/libzstd-dev.install/:2: obj-${DEB_HOST_GNU_TYPE}/CMakeFiles/Export/*/zstdTargets*.cmake usr/lib/${DEB_HOST_MULTIARCH}/cmake/zstd https://github.com/Kitware/CMake/commit/c5b56b35c264664e897a2895e2561a5fb8287703 The current debian source libzstd-dev.install is assuming zstdTargets*.cmake present in CMakeFiles/Export/<MD5_Hash_Generated_by_Cmake>/. CMake 3.24 changed the path. Prior to CMake 3.24, this directory is CMakeFiles/Export/lib/${DEB_HOST_GNU_TYPE}/cmake/zstd. Regards, yumeyao