Skip to content

Commit

Permalink
Add possibility to fetch and add by default for external plugins and …
Browse files Browse the repository at this point in the history
…set SofaGLFW as ON by default
  • Loading branch information
bakpaul committed Dec 20, 2024
1 parent 642cdc6 commit 67c2f20
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion Sofa/framework/Config/cmake/SofaMacrosConfigure.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,13 @@ macro(sofa_add_subdirectory type directory name)
endif()

set(default_value OFF)
if(${ARGV3})
if(ARG_EXTERNAL)
set(input_value ${ARGV6})
else()
set(input_value ${ARGV3})
endif ()

if(${input_value})
set(default_value ON)
endif()

Expand Down
2 changes: 1 addition & 1 deletion applications/projects/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ sofa_add_subdirectory(application runSofa runSofa ON)
sofa_add_subdirectory(application sofaOPENCL sofaOPENCL OFF)

sofa_add_subdirectory(directory Regression Regression EXTERNAL GIT_REF master)
sofa_add_subdirectory(directory SofaGLFW SofaGLFW EXTERNAL GIT_REF master)
sofa_add_subdirectory(directory SofaGLFW SofaGLFW EXTERNAL GIT_REF master ON)
sofa_add_subdirectory(application sofaProjectExample sofaProjectExample)
sofa_add_subdirectory(application sofaInfo sofaInfo)

0 comments on commit 67c2f20

Please sign in to comment.