Skip to content

Commit ff84867

Browse files
degletagneMarc Legendre
authored andcommitted
FIX: In functions.cmake change condition to find if a plugin is out of Sofa tree because else it fails if the plugin begins like Sofa folder.
Former-commit-id: e743685ceb392ef70addc1495c5b6ef11751d9e3
1 parent 7eaa824 commit ff84867

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cmake/functions.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,8 @@ function(ComputeDependencies projectName forceEnable fromProject offset)
422422
else()
423423
message(STATUS "Adding project '${projectName}'")
424424
endif()
425-
if(NOT ${GLOBAL_PROJECT_PATH_${projectName}} MATCHES "^${CMAKE_CURRENT_SOURCE_DIR}")
425+
426+
if(NOT ${GLOBAL_PROJECT_PATH_${projectName}}/ MATCHES "^${CMAKE_CURRENT_SOURCE_DIR}/")
426427
add_subdirectory("${GLOBAL_PROJECT_PATH_${projectName}}" "./build-external/${projectName}")
427428
else()
428429
add_subdirectory("${GLOBAL_PROJECT_PATH_${projectName}}")

0 commit comments

Comments
 (0)