Skip to content
Snippets Groups Projects
Commit effb5ab3 authored by Andreas Schenk's avatar Andreas Schenk
Browse files

fixed module globbing to only exclude directories based on name instead of full path

parent 8965d89a
No related branches found
No related tags found
No related merge requests found
# recursively process all subdirectories
file(GLOB ALL_FILES *)
foreach(fname ${ALL_FILES})
foreach(full_name ${ALL_FILES})
get_filename_component(fname ${full_name} NAME)
if(NOT ${fname} MATCHES ".*\\.svn"
AND NOT ${fname} MATCHES ".*CMakeFiles"
AND NOT ${fname} MATCHES ".*main"
AND NOT ${fname} MATCHES "doc")
if(IS_DIRECTORY ${fname})
if(IS_DIRECTORY ${full_name})
add_subdirectory(${fname})
endif()
endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment