Commit 9514fcab authored by Rashad Kanavath's avatar Rashad Kanavath
Browse files

CMake: python package s2snow depends on otbApplication

_otbApplication target created by OTB is only exposed using
OTBSWIGWrapper-all dependency. Without this, 'import otbApplication'
fails for tests.
parent 7e17d5ea
......@@ -2,5 +2,6 @@ add_custom_target(${otb-module}-py
COMMAND ${CMAKE_COMMAND} -E echo "Building python scrips ${CMAKE_CURRENT_BINARY_DIR}/python/"
COMMAND ${PYTHON_EXECUTABLE} setup.py build --build-base ${CMAKE_CURRENT_BINARY_DIR}/python
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/python
DEPENDS OTBSWIGWrapper-all
)
otb_module_target_label(${otb-module}-py)
Supports Markdown
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