Skip to content
Snippets Groups Projects
Commit c0085cba authored by Cédric Traizet's avatar Cédric Traizet
Browse files

BUG: add OTB_OSSIM_VERSION definition in OTBTransform

parent e510065e
No related branches found
No related tags found
No related merge requests found
......@@ -35,3 +35,13 @@ target_link_libraries(OTBTransform
)
otb_module_target(OTBTransform)
# add the OTB_OSSIM_VERSION definition
get_target_property(_OTBTransform_COMP_DEF OTBTransform COMPILE_DEFINITIONS)
if(_OTBTransform_COMP_DEF)
set_target_properties(OTBTransform
PROPERTIES COMPILE_DEFINITIONS "${_OTBTransform_COMP_DEF};OTB_OSSIM_VERSION=${OTB_OSSIM_VERSION}")
else()
set_target_properties(OTBTransform
PROPERTIES COMPILE_DEFINITIONS "OTB_OSSIM_VERSION=${OTB_OSSIM_VERSION}")
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