Skip to content
Snippets Groups Projects
Commit 51b4b912 authored by Rashad Kanavath's avatar Rashad Kanavath
Browse files

find ossim from CMAKE_PREFIX_PATH

parent 4ed081df
No related branches found
No related tags found
No related merge requests found
......@@ -50,10 +50,11 @@ endif()
if(USE_SYSTEM_OSSIM)
set(OTB_SB_OSSIM_CONFIG)
else()
set(OTB_SB_OSSIM_CONFIG
-DOSSIM_INCLUDE_DIR:PATH=${CMAKE_INSTALL_PREFIX}/include
-DOSSIM_LIBRARY:PATH=${CMAKE_INSTALL_PREFIX}/lib/libossim${CMAKE_SHARED_LIBRARY_SUFFIX}
)
#try OTB can find automatically from CMAKE_PREFIX_PATH
set(OTB_SB_OSSIM_CONFIG)
#-DOSSIM_INCLUDE_DIR:PATH=${CMAKE_INSTALL_PREFIX}/include
#-DOSSIM_LIBRARY:PATH=${CMAKE_INSTALL_PREFIX}/lib/libossim${CMAKE_SHARED_LIBRARY_SUFFIX}
#)
list(APPEND ${proj}_DEPENDENCIES OSSIM)
endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment