This is really a nice to have for the Flatpak, but currently each fetchcontent dependency needs to be declared separately in the flatpak build. This seems to me a brittle approach that is likely to result in someone updating a dependency and forgetting to update it in the flatpak.
A potential alternative would be to declare the dependency versions/URLs/checksums/etc in a dependencies.json file which is then parsed by the native cmake support for json strings. Then on the flatpak side we could script parsing that dependencies.json into the equivalent format for flatpak dependencies. That way updating a dependency only happens once and in one place.
This is really a nice to have for the Flatpak, but currently each fetchcontent dependency needs to be declared separately in the flatpak build. This seems to me a brittle approach that is likely to result in someone updating a dependency and forgetting to update it in the flatpak.
A potential alternative would be to declare the dependency versions/URLs/checksums/etc in a
dependencies.jsonfile which is then parsed by the native cmake support for json strings. Then on the flatpak side we could script parsing thatdependencies.jsoninto the equivalent format for flatpak dependencies. That way updating a dependency only happens once and in one place.