-
Notifications
You must be signed in to change notification settings - Fork 30
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
ENH: Support elastix version 5.2 with ITK >= 5.4, drop ITK < 5.0 #53
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -26,12 +26,12 @@ if(NOT DEFINED ${proj}_DIR AND NOT ${CMAKE_PROJECT_NAME}_USE_SYSTEM_${proj}) | |||||||||||||||||||||||||||||||||||||||||||||
endif() | ||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||
message(STATUS "ITK version: ${ITK_VERSION_MAJOR}.${ITK_VERSION_MINOR}.${ITK_VERSION_PATCH}.") | ||||||||||||||||||||||||||||||||||||||||||||||
if(DEFINED ITK_VERSION_MAJOR AND ${ITK_VERSION_MAJOR}.${ITK_VERSION_MINOR} VERSION_LESS 5.0) | ||||||||||||||||||||||||||||||||||||||||||||||
set(ELASTIX_GIT_REPOSITORY "$https://github.com/SuperElastix/elastix.git") | ||||||||||||||||||||||||||||||||||||||||||||||
set(ELASTIX_GIT_TAG "419313e9cc12727d73c7e6e47fbdf960aa1218b9") # latest commit on "develop" branch as if 2019-10-13 | ||||||||||||||||||||||||||||||||||||||||||||||
else() | ||||||||||||||||||||||||||||||||||||||||||||||
if(DEFINED ITK_VERSION_MAJOR AND ${ITK_VERSION_MAJOR}.${ITK_VERSION_MINOR} VERSION_LESS 5.4) | ||||||||||||||||||||||||||||||||||||||||||||||
set(ELASTIX_GIT_REPOSITORY "https://github.com/SuperElastix/elastix.git") | ||||||||||||||||||||||||||||||||||||||||||||||
set(ELASTIX_GIT_TAG "5.1.0") # 2023-01-12 | ||||||||||||||||||||||||||||||||||||||||||||||
else() | ||||||||||||||||||||||||||||||||||||||||||||||
set(ELASTIX_GIT_REPOSITORY "https://github.com/SuperElastix/elastix.git") | ||||||||||||||||||||||||||||||||||||||||||||||
set(ELASTIX_GIT_TAG "5.2.0") # 2024-07-18 | ||||||||||||||||||||||||||||||||||||||||||||||
Comment on lines
+29
to
+34
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I suggest to have the "preferred / most recent" version be the first branch of the This could be further simplified by also bumping the minimum required CMake version to at least 3.8 so that There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for your suggestions @jcfr It might be nice to have a separate check on the existence of Note that the original code also did something like:
As you can see at the master branch (current revision): SlicerElastix/SuperBuild/External_elastix.cmake Lines 34 to 40 in 9ec57ae
So I feel that this PR is already ready, and your suggestions might be put into a separate PR, afterwards. Do you still think your suggestions might make it easier to get this pull request (#53) merged? |
||||||||||||||||||||||||||||||||||||||||||||||
endif() | ||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||
ExternalProject_Add(${proj} | ||||||||||||||||||||||||||||||||||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The dollar sign here (
"$https://.../elastix.git"
) looks unfamiliar to me. Was it a typo? It appears to be introduced on March 21, 2022, with commit 3e9ef49If the dollar sign would have caused an error when retrieving elastix.git, I guess ITK < 5.0 was "de facto" already dropped in 2022 🤷
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think the change was intentional. Probably it was just a bug that was not detected because we don't have a dashboard with ITKv4.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lassoan Is there a public dashboard of your SlicerElastix extension?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is here: https://slicer.cdash.org/index.php?project=SlicerPreview
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @lassoan Do pull request (like this one) also appear at https://slicer.cdash.org/index.php?project=SlicerPreview ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extensions need to set up their own CI to test not-yet-merged pull requests. There is a slicer docker image that is updated nightly that could be used for this, but I have not done it for any of my projects yet. It would be nice, but so far I've been just testing risky-looking PRs locally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @lassoan So do you consider this PR risky-looking? 😃