Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
otb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
273
Issues
273
List
Boards
Labels
Service Desk
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Main Repositories
otb
Commits
d343b729
Commit
d343b729
authored
Feb 24, 2015
by
Manuel Grizonnet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ENH: prevent any OTB_USE_XXX option to be OFF to compile example except mapnik
parent
8f3fcf62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
Examples/CMakeLists.txt
Examples/CMakeLists.txt
+8
-1
No files found.
Examples/CMakeLists.txt
View file @
d343b729
if
(
NOT OTB_BUILD_DEFAULT_MODULES
)
message
(
FATAL_ERROR
"BUILD_EXAMPLES requires OTB_BUILD_DEFAULT_MODULES to be ON"
)
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
)
include
(
${
OTB_USE_FILE
}
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment