Skip to content

Commit 90d3336

Browse files
authored
[Config] Revert #5726 (#5761)
Revert "[Config] Prevent recursive calls to the same directory (#5726)" This reverts commit f4c584b.
1 parent f4c584b commit 90d3336

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Sofa/framework/Config/cmake/SofaMacrosUtils.cmake

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ endfunction()
3333
macro(__get_all_targets_recursive targets dir)
3434
get_property(subdirectories DIRECTORY ${dir} PROPERTY SUBDIRECTORIES)
3535
foreach(subdir ${subdirectories})
36-
if (NOT ${subdir} MATCHES ${dir})
37-
__get_all_targets_recursive(${targets} ${subdir})
38-
endif()
36+
__get_all_targets_recursive(${targets} ${subdir})
3937
endforeach()
4038

4139
get_property(current_targets DIRECTORY ${dir} PROPERTY BUILDSYSTEM_TARGETS)

0 commit comments

Comments
 (0)