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
39c99797
Commit
39c99797
authored
Dec 30, 2015
by
Rashad Kanavath
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
COMP: more checks before warning
parent
fbffb556
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
CMake/FindOssim.cmake
CMake/FindOssim.cmake
+14
-7
No files found.
CMake/FindOssim.cmake
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
}
)
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