[CMake] Adjust find scripts to update the ALL_PKG_LIBS property