Commit f2e2ea82 authored by Rashad Kanavath's avatar Rashad Kanavath

BUG: find_package(OTB) is needed when build as standalone or otherwise

parent 1a0e7419
......@@ -100,6 +100,11 @@ else()
message(FATAL_ERROR "BUILD_EXAMPLES requires ${_activationOption} to be ON")
endif()
endforeach()
find_package(OTB REQUIRED)
include(${OTB_USE_FILE})
message(STATUS "Found OTB: ${OTB_USE_FILE}")
endif()
set(OTB_TEST_DRIVER otbTestDriver)
......
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