Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
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
Julien Cabieces
otb
Commits
d343b729
Commit
d343b729
authored
10 years ago
by
Manuel Grizonnet
Browse files
Options
Downloads
Patches
Plain Diff
ENH: prevent any OTB_USE_XXX option to be OFF to compile example except mapnik
parent
8f3fcf62
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Examples/CMakeLists.txt
+8
-1
8 additions, 1 deletion
Examples/CMakeLists.txt
with
8 additions
and
1 deletion
Examples/CMakeLists.txt
+
8
−
1
View file @
d343b729
if
(
NOT OTB_BUILD_DEFAULT_MODULES
)
if
(
NOT OTB_BUILD_DEFAULT_MODULES
)
message
(
FATAL_ERROR
"BUILD_EXAMPLES requires OTB_BUILD_DEFAULT_MODULES to be ON"
)
message
(
FATAL_ERROR
"BUILD_EXAMPLES requires OTB_BUILD_DEFAULT_MODULES to be ON"
)
endif
()
endif
()
# TODO : we also need to prevent any OTB_USE_XXX option to be OFF
# We also need to prevent any OTB_USE_XXX option to be OFF (except mapnik)
# For now we parse module activation list and test if option is ON. If not the cmake configuration stop.
#TODO We should provide a better mechanism here wich will deactivate only examples required by deactivated options.
foreach
(
_activationOption
${
OTB_MODULE_ACTIVATION_OPTION_LIST
}
)
if
(
NOT
${
_activationOption
}
AND NOT
${
_activationOption
}
STREQUAL
"OTB_USE_MAPNIK"
)
message
(
FATAL_ERROR
"BUILD_EXAMPLES requires
${
_activationOption
}
to be ON"
)
endif
()
endforeach
()
find_package
(
OTB REQUIRED
)
find_package
(
OTB REQUIRED
)
include
(
${
OTB_USE_FILE
}
)
include
(
${
OTB_USE_FILE
}
)
...
...
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