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] install files in versioned locations (breaks backward compatibility for external projects!) #1358

Merged
merged 2 commits into from
Feb 1, 2024

Conversation

KrisThielemans
Copy link
Collaborator

This breaks backwards compatibility in some sense. New locations are indicated in the release notes. In particular, an external project now needs to set STIR_DIR to /whereever/STIR/was/installed/lib/cmake/STIR-6.0.

Unfortunately, this does not yet allow installing different STIR versions in the same location, as the static libraries and executables are unversioned. If you need this, you will need to install using different values for CMAKE_INSTALL_PREFIX.

As part of this change, I no longer use STIR_CONFIG_DIR as a cached variable, such that it automatically moves along with CMAKE_INSTALL_PREFIX. However, if you are upgrading an existing STIR build, you might have to delete the cached variable, or it will point to the old location.

Fixes #945

This breaks backwards compatibility in some sense.
New locations are indicated in the release notes.
@KrisThielemans KrisThielemans added this to the v6.0 milestone Jan 31, 2024
This was referenced Feb 1, 2024
@KrisThielemans KrisThielemans merged commit 07d64f2 into UCL:master Feb 1, 2024
5 of 7 checks passed
@KrisThielemans KrisThielemans deleted the CMake_export_locations branch February 1, 2024 20:14
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.

CMake variable STIR_CONFIG_DIR is cached hence doesn't follow CMAKE_INSTALL_PREFIX
1 participant