Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SuperElastix
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirrors
SuperElastix
Commits
1011aa4a
Commit
1011aa4a
authored
9 years ago
by
Kasper Marstal
Browse files
Options
Downloads
Patches
Plain Diff
COMP: Expose ELASTIX_DIR setting in CMake cache if UseElastix.cmake is not found
parent
14042290
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Modules/Components/Elastix/ModuleElastix.cmake
+7
-2
7 additions, 2 deletions
Modules/Components/Elastix/ModuleElastix.cmake
with
7 additions
and
2 deletions
Modules/Components/Elastix/ModuleElastix.cmake
+
7
−
2
View file @
1011aa4a
...
...
@@ -9,9 +9,14 @@ if( OPENMP_FOUND )
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
${
OpenMP_C_FLAGS
}
"
)
endif
()
# Find UseElastix.cmake
if
(
NOT EXISTS
${
ELASTIX_USE_FILE
}
)
option
(
ELASTIX_USE_FILE
"NOT_FOUND"
)
message
(
FATAL_ERROR
"
${
MODULE
}
could not find ELASTIX_USE_FILE. Use the SuperBuild or manually point the ELASTIX_USE_FILE CMake variable to the UseElastix.cmake file in the root of your local elastix build tree."
)
set
(
ELASTIX_USE_FILE
${
ELASTIX_DIR
}
/UseElastix.cmake
)
endif
()
if
(
NOT EXISTS
${
ELASTIX_USE_FILE
}
)
set
(
ELASTIX_DIR
""
CACHE PATH
"Path to elastix build folder"
)
message
(
FATAL_ERROR
"Could not find UseElastix.cmake. Point ELASTIX_DIR to folder containing UseElastix.cmake or use SuperBuild."
)
endif
()
# Export include files
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment