Skip to content

Commit

Permalink
Merge pull request #1123 from guparan/v19.06_changes
Browse files Browse the repository at this point in the history
[SofaMacros] FIX default module version
  • Loading branch information
guparan authored Aug 21, 2019
2 parents 24e3e10 + 85e2449 commit dbf418d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SofaKernel/SofaFramework/SofaMacros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -487,11 +487,11 @@ macro(sofa_install_targets package_name the_targets include_install_dir)

foreach(target ${the_targets})
set(version ${${target}_VERSION})
string(TOUPPER "${package_name}" package_name_upper)
if(version VERSION_GREATER "0.0")
set_target_properties(${target} PROPERTIES VERSION "${version}")
elseif(target MATCHES "^Sofa" AND SofaFramework_VERSION)
set_target_properties(${target} PROPERTIES VERSION "${SofaFramework_VERSION}")
elseif(target MATCHES "^Sofa" AND Sofa_VERSION)
elseif(target MATCHES "^Sofa" AND NOT PLUGIN_${package_name_upper} AND Sofa_VERSION)
# Default to Sofa_VERSION for all SOFA modules
set_target_properties(${target} PROPERTIES VERSION "${Sofa_VERSION}")
endif()

Expand Down

0 comments on commit dbf418d

Please sign in to comment.