Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake: add PROJ_DB_CACHE_DIR #3711

Merged
merged 1 commit into from
Apr 29, 2023
Merged

Conversation

mwtoews
Copy link
Member

@mwtoews mwtoews commented Apr 26, 2023

This re-implements PROJ_DB_CACHE_DIR to CMake, which is similar to #1446 which was lost when Autotools were dropped.

Local tests on Ubuntu 20.04 work nicely, using something like this:

mkdir /tmp/proj_cache
mkdir build && cd build
cmake -DPROJ_DB_CACHE_DIR=/tmp/proj_cache ..
make -j7
make clean
make -j7

This option works nicely with USE_CCACHE (i.e. -DUSE_CCACHE=ON) to create subsequent builds within a few seconds.

Integration with CI will happen later.

Closes #3710

@mwtoews mwtoews requested a review from rouault April 26, 2023 21:53
@rouault rouault added this to the 9.3.0 milestone Apr 29, 2023
@rouault rouault merged commit fb505f4 into OSGeo:master Apr 29, 2023
22 of 23 checks passed
@mwtoews mwtoews deleted the proj-db-cache-dir branch April 29, 2023 11:02
This was referenced Apr 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Skip proj.db generation during build
2 participants