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

Superbuild: Pass additional ITK CMake configuration options #100

Merged
merged 2 commits into from
Nov 10, 2018

Conversation

thewtex
Copy link
Member

@thewtex thewtex commented Mar 27, 2018

@fbudin69500 Could you please take this branch and run with it?

Todos:

endif()
endforeach()
# Todo, also pass all Module_* variables
message(STATUS "ITK CMake Cache Args - ${ep_itk_cmake_cache_args}")
Copy link
Contributor

@jcfr jcfr Mar 28, 2018

Choose a reason for hiding this comment

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

You could simplify this by using https://cmake.org/cmake/help/v3.11/prop_dir/CACHE_VARIABLES.html

You could then automatically propagate all variables prefixed with either ITK_WRAP_ or ITKGroup_, Modules_ prefix

The one starting with ITK_ should still be explicitly passed i think.

Choose a reason for hiding this comment

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

@jcfr The documentation says that this property is intended for debug purposes. Do you think it is a good idea to use it in this case?

Copy link
Contributor

@jcfr jcfr Mar 28, 2018

Choose a reason for hiding this comment

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

this property is intended for debug purposes

This is a hint. It makes sense to use it here.

We should submit a MR to cmake and update the documentation with something like:

this property is useful for debug purposes

Other references:

Choose a reason for hiding this comment

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

Great. Thanks for your input.

CMakeLists.txt Outdated
@@ -153,6 +153,46 @@ if(ITKPythonPackage_SUPERBUILD)
message(STATUS "SuperBuild - Searching for python[OK]")
message(STATUS "SuperBuild - DOXYGEN_EXECUTABLE: ${DOXYGEN_EXECUTABLE}")

# CMake configuration variables to pass to ITK's build
set(ep_itk_cmake_cache_args "")
foreach(var ITK_WRAP_DOC
Copy link
Contributor

@jcfr jcfr Mar 28, 2018

Choose a reason for hiding this comment

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

ITK_WRAP_DOC should be indented like the other variables

Sorting alphabetically also helps.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

@thewtex
Copy link
Member Author

thewtex commented May 25, 2018

Alternative approach for this: use a Git submodule.

@jcfr
Copy link
Contributor

jcfr commented May 25, 2018

Alternative approach for this: use a Git submodule.

As soon as we release a new version of scikit-build with the following fix, this will work. See scikit-build/scikit-build#321

@hjmjohnson
Copy link
Member

@thewtex What's the status of this patch?

@thewtex
Copy link
Member Author

thewtex commented Nov 7, 2018

@hjmjohnson taking a look -- pushing an update that needs more testing.

@thewtex
Copy link
Member Author

thewtex commented Nov 10, 2018

Updated and tested. Hats off 🎩 to @jcfr for the nice cache variable pattern matching suggestion.

@thewtex thewtex merged commit 87d671c into InsightSoftwareConsortium:master Nov 10, 2018
@thewtex thewtex deleted the pass-itk-options branch November 10, 2018 20:18
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.

4 participants