OSGeo / libgeotiff

Official repository of the libgeotiff project
178 stars 69 forks source link

CMake: adopt GNUInstallDirs #74

Closed thesamesam closed 2 years ago

thesamesam commented 2 years ago

This makes it a lot easier for packagers (it happens by default if we've setup our environment correctly) to have files installed in the right places, including libdir, but also documentation, which can vary.

This works cross-platform still but it means libgeotiff uses the standard options which CMake projects tend to use for such locations and therefore no special treatment is needed when packaging it.

Fixes: https://github.com/OSGeo/libgeotiff/issues/33 Signed-off-by: Sam James sam@gentoo.org

thesamesam commented 2 years ago

@rouault could you take a look? thank you!

rouault commented 2 years ago

Thanks for this. This looks great. In particular the installation of documentation in $prefix/doc before was clearly wrong.