Commit 2f5d2704 authored by Stéphane Albert's avatar Stéphane Albert

COMP: Upgraded CMakeLists.txt (find_package(OTB) section).

parent 1174628c
......@@ -36,8 +36,13 @@ endif(WIN32)
#----------------------------------------------------------------------------
# Link to the Orfeo ToolBox
find_package(OTB PATHS /usr/lib/otb)
find_package(OTB
REQUIRED
#No need to specify default (system) path.
#PATHS /usr/lib/otb
)
if(OTB_FOUND)
#message( "OTB_USE_FILE='${OTB_USE_FILE}'" )
include(${OTB_USE_FILE})
else(OTB_FOUND)
message(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment