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
73d76e1d
Commit
73d76e1d
authored
16 years ago
by
Julien Michel
Browse files
Options
Downloads
Patches
Plain Diff
COMP: Fixing a configuration problem due to GDAL search method
parent
63f0d991
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
CMakeLists.txt
+10
-10
10 additions, 10 deletions
CMakeLists.txt
with
10 additions
and
10 deletions
CMakeLists.txt
+
10
−
10
View file @
73d76e1d
...
@@ -315,24 +315,22 @@ ENDIF(OTB_USE_CURL)
...
@@ -315,24 +315,22 @@ ENDIF(OTB_USE_CURL)
# GDAL Library
# GDAL Library
#-------------------------------
#-------------------------------
FIND_PATH
(
GDAL_LIBRARY_DIRS gdal PATHS $ENV{GDAL_LIBRARY_DIRS}
)
FIND_PATH
(
GDAL_INCLUDE_DIRS gdal.h $ENV{GDAL_INCLUDE_DIRS} /usr/include/gdal
)
FIND_PATH
(
GDAL_INCLUDE_DIRS gdal.h $ENV{GDAL_INCLUDE_DIRS} /usr/include/gdal
)
IF
(
NOT GDAL_LIBRARY_DIRS
)
MESSAGE
(
FATAL_ERROR
"Cannot find GDAL library directory. Please set GDAL_LIBRARY_DIRS."
)
ENDIF
(
NOT GDAL_LIBRARY_DIRS
)
IF
(
NOT GDAL_INCLUDE_DIRS
)
IF
(
NOT GDAL_INCLUDE_DIRS
)
MESSAGE
(
FATAL_ERROR
MESSAGE
(
FATAL_ERROR
"Cannot find GDAL include directory. Please set GDAL_INCLUDE_DIRS."
)
"Cannot find GDAL include directory. Please set GDAL_INCLUDE_DIRS."
)
ENDIF
(
NOT GDAL_INCLUDE_DIRS
)
ENDIF
(
NOT GDAL_INCLUDE_DIRS
)
INCLUDE_DIRECTORIES
(
${
GDAL_INCLUDE_DIRS
}
)
INCLUDE_DIRECTORIES
(
${
GDAL_INCLUDE_DIRS
}
)
LINK_DIRECTORIES
(
${
GDAL_LIBRARY_DIRS
}
)
FIND_LIBRARY
(
GDAL_LIBRARY NAMES gdal gdal1.5.0 PATHS GDAL_LIBRARY_DIRS
)
FIND_LIBRARY
(
GDAL_LIBRARY NAMES gdal gdal1.5.0 PATHS
${
GDAL_LIBRARY_DIRS
}
/usr/lib/gdal
)
IF
(
NOT GDAL_LIBRARY
)
MESSAGE
(
FATAL_ERROR
"Cannot find GDAL library. Please set GDAL_LIBRARY."
)
ENDIF
(
NOT GDAL_LIBRARY
)
MESSAGE
(
STATUS
"GDAL library found:
${
GDAL_LIBRARY
}
"
)
# Find geotiff headers
# Find geotiff headers
FIND_PATH
(
GEOTIFF_INCLUDE_DIRS geotiff.h $ENV{GDAL_INCLUDE_DIRS} /usr/include/geotiff
)
FIND_PATH
(
GEOTIFF_INCLUDE_DIRS geotiff.h $ENV{GDAL_INCLUDE_DIRS} /usr/include/geotiff
)
...
@@ -385,11 +383,13 @@ MESSAGE(STATUS "Testing if GDAL has geotiff -- no.")
...
@@ -385,11 +383,13 @@ MESSAGE(STATUS "Testing if GDAL has geotiff -- no.")
FIND_LIBRARY
(
GEOTIFF_LIBRARY geotiff PATHS
)
FIND_LIBRARY
(
GEOTIFF_LIBRARY geotiff PATHS
)
IF
(
NOT GEOTIFF_LIBRARY
)
IF
(
NOT GEOTIFF_LIBRARY
)
MESSAGE
(
FATAL_ERROR
MESSAGE
(
FATAL_ERROR
"Cannot find geotiff library. Please set
LIB
GEOTIFF_LIBRARY
_DIR
."
)
"Cannot find geotiff library. Please set GEOTIFF_LIBRARY."
)
ENDIF
(
NOT GEOTIFF_LIBRARY
)
ENDIF
(
NOT GEOTIFF_LIBRARY
)
ENDIF
(
GDAL_HAS_GEOTIFF
)
ENDIF
(
GDAL_HAS_GEOTIFF
)
ENDIF
(
NOT DEFINED GDAL_HAS_GEOTIFF
)
ENDIF
(
NOT DEFINED GDAL_HAS_GEOTIFF
)
# Include jpeg headers
INCLUDE_DIRECTORIES
(
${
OTB_SOURCE_DIR
}
/Utilities/ITK/Utilities/itkjpeg
)
#-------------------------------
#-------------------------------
# End connections whith external libraries
# End connections whith external libraries
...
...
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