[PROJ] Trouble building packages for distribution
Kristian Evers
kristian at evers.dev
Mon Feb 23 07:41:50 PST 2026
I’m in the process of preparing 9.8.0RC1 but seem to have hit a bit of an issue with CMake that I can’t make sense of.
In short, empty archives are produced when running "cmake --build . --target dist”.
As usual I follow the recipe in HOWTO-RELEASE:
$ BRANCH_NAME=9.8
$ git clone --depth 1 --branch $BRANCH_NAME https://github.com/OSGeo/PROJ.git PROJ-$BRANCH_NAME
$ cd PROJ-$BRANCH_NAME
$ mkdir _build && cd _build
$ cmake -D BUILD_TESTING=OFF ..
$ cmake --build . --target dist
Looking at the produced files shows they are empty:
$ ls -lh proj-9.8.0*
-rw-r--r-- 1 kevers staff 29B Feb 23 16:31 proj-9.8.0.tar.gz
-rw-r--r-- 1 kevers staff 22B Feb 23 16:31 proj-9.8.0.zip
Oddly enough, if I do a similar thing within my git repo I succeed:
$ mkdir build && cd build
$ cmake -D BUILD_TESTING=OFF ..
$ cmake --build . --target dist
$ ls -lh proj-*
-rw-r--r-- 1 kevers staff 6.4M Feb 23 16:38 proj-9.8.0.tar.gz
-rw-r--r-- 1 kevers staff 6.9M Feb 23 16:38 proj-9.8.0.zip
I see that a few things have changed in CMakeLists.txt but nothing that seems related. Could someone try to reproduce this?
/Kristian
More information about the PROJ
mailing list