third-party: fix gitignore

This commit is contained in:
Marc-André Moreau 2012-09-20 20:23:09 -04:00
parent fe9cd89e97
commit 4ab065bb88
2 changed files with 4 additions and 2 deletions

View File

@ -1,2 +1,4 @@
**/**
*
**/*
!CMakeLists.txt

View File

@ -22,9 +22,9 @@
file(GLOB all_valid_subdirs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*/CMakeLists.txt")
foreach(dir ${all_valid_subdirs})
message(STATUS "path = ${dir}")
if(${dir} MATCHES "^([^/]*)//CMakeLists.txt")
string(REGEX REPLACE "^([^/]*)//CMakeLists.txt" "\\1" dir_trimmed ${dir})
message(STATUS "Adding third-party component ${dir_trimmed}")
add_subdirectory(${dir_trimmed})
endif()
endforeach(dir)