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
David Youssefi
otb
Commits
fe341f5c
Commit
fe341f5c
authored
18 years ago
by
Thomas Feuvrier
Browse files
Options
Downloads
Patches
Plain Diff
Modification de la recherche de GDAL dans le CMakeLists.txt de OTB.
parent
4047b6f4
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
CMakeLists.txt
+8
-3
8 additions, 3 deletions
CMakeLists.txt
with
8 additions
and
3 deletions
CMakeLists.txt
+
8
−
3
View file @
fe341f5c
...
...
@@ -85,12 +85,17 @@ ENDIF(OTB_USE_EXTERNAL_ITK)
#-------------------------------
# Librairie GDAL
#-------------------------------
FIND_
PATH
(
GDAL_LIBRARY_DIRS gdal PATHS $ENV{GDAL_
DIR_LIB
}
)
FIND_PATH
(
GDAL_INCLUDE_DIRS gdal.h $ENV{GDAL_
DIR_
INCLUDES}
)
FIND_
LIBRARY
(
GDAL_LIBRARY_DIRS gdal PATHS $ENV{GDAL_
LIBRARY_DIRS
}
)
FIND_PATH
(
GDAL_INCLUDE_DIRS gdal.h $ENV{GDAL_INCLUDE
_DIR
S}
)
IF
(
NOT GDAL_LIBRARY_DIRS
)
MESSAGE
(
FATAL_ERROR
"Cannot find GDAL library. Please set GDAL_LIBRARY_DIRS
and GDAL_INCLUDE_DIRS
."
)
"Cannot find GDAL library. Please set GDAL_LIBRARY_DIRS."
)
ENDIF
(
NOT GDAL_LIBRARY_DIRS
)
IF
(
NOT GDAL_INCLUDE_DIRS
)
MESSAGE
(
FATAL_ERROR
"Cannot find GDAL include directory. Please set GDAL_INCLUDE_DIRS."
)
ENDIF
(
NOT GDAL_INCLUDE_DIRS
)
INCLUDE_DIRECTORIES
(
${
GDAL_INCLUDE_DIRS
}
)
...
...
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