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

Itk #68

Merged
merged 4 commits into from
Jan 15, 2018
Merged

Itk #68

merged 4 commits into from
Jan 15, 2018

Conversation

rijobro
Copy link
Contributor

@rijobro rijobro commented Jan 12, 2018

Optionally build STIR with ITK

-DCMAKE_LIBRARY_PATH=${SUPERBUILD_INSTALL_DIR}/lib
-DCMAKE_INCLUDE_PATH=${SUPERBUILD_INSTALL_DIR}
-DCMAKE_INSTALL_PREFIX=${${proj}_Install_Dir}
-DBUILD_SHARED_LIBS=true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

more standard to use ON than true. same for OFF.

-DCMAKE_INCLUDE_PATH=${SUPERBUILD_INSTALL_DIR}
-DCMAKE_INSTALL_PREFIX=${${proj}_Install_Dir}
-DBUILD_SHARED_LIBS=true
-DCMAKE_BUILD_TYPE=release
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that would have to be Release but in fact I don't think we should force this. It should be handled by EXTERNAL_PROJECT_BUILD_TYPE already. So delete this line.

DEPENDS ${${proj}_DEPENDENCIES}
)

set(${proj}_ROOT ${${proj}_SOURCE_DIR})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ITK_ROOT is not used. The variable for ITK is ITK_DIR as it uses ITKConfig.cmake (as opposed to a FindITK.cmake module). I wouldn't really know how to set ITK_DIR though. It's likely going to be OS dependent. Possibly @bathomas knows how to do this. But luckily it seems we don't need this (as it seems to be found because of CMAKE_INSTALL_PREFIX).

See also #70 which contains a link to the Slicer SuperBuild file for ITK.

if (USE_ITK AND USE_SYSTEM_ITK)
set(STIR_CMAKE_ARGS
${STIR_CMAKE_ARGS}
-DDISABLE_ITK=false
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this line. STIR will by default look for it, so no need to disable the disable...

# If !USE_SYSTEM_ITK, ITK_DIR will get set during the installation of ITK
-DITK_DIR=${ITK_DIR}
)
# ITK not required, so disable
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess move the comment inside the else()

@@ -73,6 +73,10 @@ option(DEVEL_BUILD "Use current versions of major packages" OFF)
set(googletest_URL https://github.com/google/googletest )
set(googletest_TAG release-1.8.0)

## ITK
set(ITK_URL git://itk.org/ITK.git)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we're using https links for all the others. Not 100% sure what the impact of using git is. best to be uniform I guess.

rijobro added 2 commits January 15, 2018 10:35
2. `CMAKE_BUILD_TYPE=` `Release` -> `${EXTERNAL_PROJECT_BUILD_TYPE}`
3. `set(${proj}_ROOT)` deleted
4. `-DDISABLE_ITK=ON` deleted for `!USE_ITK`
5. `git://itk` -> `https://itk`
@KrisThielemans KrisThielemans merged commit d482d17 into master Jan 15, 2018
@casperdcl casperdcl deleted the ITK branch January 19, 2018 17:51
paskino pushed a commit to paskino/SIRF-SuperBuild that referenced this pull request Oct 25, 2021
remove env variables and increase pointer size
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