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

Bad cmake find itk wrap image dims #268

Conversation

fbudin69500
Copy link
Contributor

This PR addresses problems introduced when moving Python tests from the global Wrapping/Generators/Python directory to their individual module directory.

Francois Budin added 2 commits December 4, 2018 22:09
This is a fix for previous commit [1] which introduced some small
problems when moving Python tests from the Python Wrapping folder
to each module folder.

When verifying for which image dimension the wrapping is activated, at the
module level, one cannot directly on the CMake variable WRAP_2 which is
not initialized in most cases (it would have to be initialized inside
the current CMakeLists.txt as it is a local CMake variable). Instead,
rely on ITK_WRAP_IMAGE_DIMS which is a CACHE variable and therefore
available throughout the project.

Addionally, the CMake command `list(FIND` requires the CMake list
that is passed to be given by its variable name, not expanded.

[1] 391d98a
Several tests had the wrong path images they were trying to find
to run tests.
Copy link
Member

@thewtex thewtex left a comment

Choose a reason for hiding this comment

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

Great catch @fbudin69500 ! 🦅 Thanks for the fix! 🥇

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.

None yet

2 participants