-
Notifications
You must be signed in to change notification settings - Fork 95
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
restrict includes for CMake #1518
Open
KrisThielemans
wants to merge
5
commits into
UCL:master
Choose a base branch
from
KrisThielemans:CMake_restrict_includes
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This was referenced Oct 1, 2024
We had some remaining "global" include_directories. Using target_include_directories means it's more specific, and we don't need to explicitly export them anymore. This reduces possible conflicts when importing STIR.
It turns out that we don't need `include(${ITK_USE_FILE})` in STIRConfig.cmake. This therefore avoids adding the ITK include directory to the global include path. Effectively fixes UCL#432 as when building STIR, we don't mind (currently anyway).
KrisThielemans
force-pushed
the
CMake_restrict_includes
branch
from
October 1, 2024 17:19
42743e6
to
18d4b4e
Compare
So, we currently need HDF5 as a dependency of buildblock as well. |
|
KrisThielemans
force-pushed
the
CMake_restrict_includes
branch
from
February 4, 2025 09:13
46a8d27
to
2872adb
Compare
KrisThielemans
force-pushed
the
CMake_restrict_includes
branch
from
February 4, 2025 14:13
2872adb
to
ab3aa1c
Compare
As we currently do not depend on IO due to circular dependencies, we need to add it explicitly.
KrisThielemans
force-pushed
the
CMake_restrict_includes
branch
from
February 4, 2025 14:37
ab3aa1c
to
e88bbf5
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We had some remaining "global"
include_directories
. Usingtarget_include_directories
means it's more specific, and we don't need to explicitly export them anymore, and neither do they need to be added to the global include path inSTIRConfig.cmake
.Similarly, the following line is not needed
STIR/src/cmake/STIRConfig.cmake.in
Line 82 in 6417022
This PR reduces possible conflicts when importing STIR.