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
39c99797
Commit
39c99797
authored
9 years ago
by
Rashad Kanavath
Browse files
Options
Downloads
Patches
Plain Diff
COMP: more checks before warning
parent
fbffb556
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMake/FindOssim.cmake
+14
-7
14 additions, 7 deletions
CMake/FindOssim.cmake
with
14 additions
and
7 deletions
CMake/FindOssim.cmake
+
14
−
7
View file @
39c99797
...
...
@@ -32,13 +32,20 @@ endif()
if
(
EXISTS
"
${
OSSIM_INCLUDE_DIR
}
/ossim/imaging/ossimImageRenderer.h"
)
file
(
STRINGS
"
${
OSSIM_INCLUDE_DIR
}
/ossim/imaging/ossimImageRenderer.h"
_ossim_image_renderer_h_CONTENTS REGEX
"^//
\\
$Id: ossimImageRenderer
\\
.h [0-9.]+ "
)
string
(
REGEX REPLACE
".*ossimImageRenderer
\\
.h ([0-9.]+) .*"
"
\\
1"
_ossim_svn_revision_hint
"
${
_ossim_image_renderer_h_CONTENTS
}
"
)
if
(
NOT
"
${
_ossim_svn_revision_hint
}
"
STREQUAL
"23537"
)
message
(
WARNING
"The OSSIM version found doesn't correspond to SVN revision 23537 (the recommended revision for OTB)."
"There are known issues with version 1.8.16 (bugs in Sentinel1 "
"calibration) and with official archive 1.8.20-1 (RpcModel returns "
"nans outside the image extent)"
)
if
(
"
${
_ossim_svn_revision_hint
}
"
LESS
"23537"
)
message
(
WARNING
"The OSSIM include directory detected by OTB is: '
${
OSSIM_INCLUDE_DIR
}
'."
"This version does not have support for SENTINEL-1 products."
"Opening an image will result in immediate crash!. "
"Please consider updating your ossim to latest stable release.(1.8.20-3)"
)
else
()
if
(
"
${
_ossim_svn_revision_hint
}
"
LESS
"23664"
)
message
(
WARNING
"The OSSIM include directory detected by OTB is '
${
OSSIM_INCLUDE_DIR
}
'."
"This version has a critical bug inside ossimRpcModel."
"When an input point outside image extent is given the model returns 'NaN'."
"Please consider updating your ossim to latest stable release.(1.8.20-3)"
)
endif
()
endif
()
#message(STATUS "OSSIM SVN rev. hint : ${_ossim_svn_revision_hint}")
else
()
if
(
NOT Ossim_FIND_QUIETLY
)
message
(
WARNING
"ossimImageRenderer.h not found !"
)
...
...
@@ -55,5 +62,5 @@ FIND_PACKAGE_HANDLE_STANDARD_ARGS( Ossim DEFAULT_MSG OSSIM_LIBRARY OSSIM_INCLUDE
mark_as_advanced
(
OSSIM_INCLUDE_DIR OSSIM_LIBRARY
)
set
(
OSSIM_LIBRARIES
${
OSSIM_LIBRARY
}
)
set
(
OSSIM_LIBRARIES
"
${
OSSIM_LIBRARY
}
;
${
OPENTHREADS_LIBRARY
}
"
)
set
(
OSSIM_INCLUDE_DIRS
${
OSSIM_INCLUDE_DIR
}
)
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