Skip to content
Snippets Groups Projects
Commit 89e59da4 authored by Julien Malik's avatar Julien Malik
Browse files

COMP: fix otb_module_target for executables

parent efb6e26b
No related branches found
No related tags found
No related merge requests found
......@@ -240,14 +240,17 @@ macro(otb_module_target_label _target_name)
endmacro()
macro(otb_module_target_name _name)
set_property(TARGET ${_name} PROPERTY VERSION 1)
set_property(TARGET ${_name} PROPERTY SOVERSION 1)
if("${_name}" MATCHES "^[Oo][Tt][Bb]")
set(_otb "")
else()
set(_otb "otb")
get_property(_target_type TARGET ${_name} PROPERTY TYPE)
if (NOT ${_target_type} STREQUAL "EXECUTABLE")
set_property(TARGET ${_name} PROPERTY VERSION 1)
set_property(TARGET ${_name} PROPERTY SOVERSION 1)
if("${_name}" MATCHES "^[Oo][Tt][Bb]")
set(_otb "")
else()
set(_otb "otb")
endif()
set_property(TARGET ${_name} PROPERTY OUTPUT_NAME ${_otb}${_name}-${OTB_VERSION_MAJOR}.${OTB_VERSION_MINOR})
endif()
set_property(TARGET ${_name} PROPERTY OUTPUT_NAME ${_otb}${_name}-${OTB_VERSION_MAJOR}.${OTB_VERSION_MINOR})
endmacro()
macro(otb_module_target_export _name)
......
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