Skip to content

Commit

Permalink
FIX: In functions.cmake change condition to find if a plugin is out o…
Browse files Browse the repository at this point in the history
…f Sofa tree because else it fails if the plugin begins like Sofa folder.

Former-commit-id: e743685ceb392ef70addc1495c5b6ef11751d9e3
  • Loading branch information
degletagne authored and Marc Legendre committed Apr 24, 2015
1 parent 7eaa824 commit ff84867
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmake/functions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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}}")
Expand Down

0 comments on commit ff84867

Please sign in to comment.