Skip to content

CMake should only add cpack related options when PROJ is the top level project.#4722

Merged
rouault merged 1 commit intoOSGeo:masterfrom
dbs4261:patch-2
Mar 22, 2026
Merged

CMake should only add cpack related options when PROJ is the top level project.#4722
rouault merged 1 commit intoOSGeo:masterfrom
dbs4261:patch-2

Conversation

@dbs4261
Copy link
Contributor

@dbs4261 dbs4261 commented Mar 20, 2026

Updated CMakeLists.txt to only set CPACK variables and uninstall target when proj is the top level project. This will help when proj is consumed using something like CMake's FetchContent.

Updated CMakeLists.txt to only set CPACK variables and uninstall target when proj is the top level project
@rouault rouault added this to the 9.9.0 milestone Mar 22, 2026
@rouault rouault merged commit e479bd3 into OSGeo:master Mar 22, 2026
30 checks passed
@dbs4261 dbs4261 changed the title CMake only adds cpack related options when the top level project. CMake should only add cpack related options when the top level project. Mar 25, 2026
@dbs4261 dbs4261 changed the title CMake should only add cpack related options when the top level project. CMake should only add cpack related options when PROJ is the top level project. Mar 25, 2026
@dbs4261
Copy link
Contributor Author

dbs4261 commented Mar 25, 2026

Note: once CMake is updated to be 3.21 or greater, the if statement should switch to if(PROJECT_IS_TOP_LEVEL) instead.

@dbs4261 dbs4261 deleted the patch-2 branch March 25, 2026 16:05
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.

2 participants