Skip to content

Commit

Permalink
Replace . by _ in plugin name for macro SOFA_FETCH_PLUGIN_NAME
Browse files Browse the repository at this point in the history
  • Loading branch information
bakpaul committed Feb 26, 2025
1 parent 093c67d commit 950cf02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sofa/framework/Config/cmake/SofaMacrosConfigure.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@ function(sofa_add_generic_external directory name type)
endif()

# Create option
string(TOUPPER ${PROJECT_NAME}_FETCH_${name} fetch_enabled)
string(REPLACE "\." "_" fixed_name ${name})
string(TOUPPER ${PROJECT_NAME}_FETCH_${fixed_name} fetch_enabled)
if(NOT "${ARG_WHEN_TO_SHOW}" STREQUAL "" AND NOT "${ARG_VALUE_IF_HIDDEN}" STREQUAL "")
cmake_dependent_option(${fetch_enabled} "Fetch/update ${name} repository." ${active} "${ARG_WHEN_TO_SHOW}" ${ARG_VALUE_IF_HIDDEN})
else()
Expand Down

0 comments on commit 950cf02

Please sign in to comment.