From ff8486725ed73438e3d54e794afe5d2630adcb8e Mon Sep 17 00:00:00 2001 From: degletagne Date: Thu, 23 Apr 2015 17:42:22 +0200 Subject: [PATCH] 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 --- cmake/functions.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/functions.cmake b/cmake/functions.cmake index 914c3d46333..901acf62dce 100644 --- a/cmake/functions.cmake +++ b/cmake/functions.cmake @@ -422,7 +422,8 @@ function(ComputeDependencies projectName forceEnable fromProject offset) else() message(STATUS "Adding project '${projectName}'") endif() - if(NOT ${GLOBAL_PROJECT_PATH_${projectName}} MATCHES "^${CMAKE_CURRENT_SOURCE_DIR}") + + if(NOT ${GLOBAL_PROJECT_PATH_${projectName}}/ MATCHES "^${CMAKE_CURRENT_SOURCE_DIR}/") add_subdirectory("${GLOBAL_PROJECT_PATH_${projectName}}" "./build-external/${projectName}") else() add_subdirectory("${GLOBAL_PROJECT_PATH_${projectName}}")