better file globbing when doing an "in tree build"
This commit is contained in:
parent
a6a1ab5c27
commit
b2d4740423
|
@ -6,8 +6,11 @@ file( GLOB template_lst RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} * )
|
|||
|
||||
# don't include CMakeLists.txt or CMakeLists.txt~ which could be in the GLOB list
|
||||
string( REGEX REPLACE "CMakeLists.txt~*;?" "" template_lst "${template_lst}" )
|
||||
#message( template_lst:${template_lst} )
|
||||
|
||||
# guard against an in tree "build"
|
||||
string( REGEX REPLACE "CMakeFiles/[^;]+;?" "" template_lst "${template_lst}" )
|
||||
|
||||
#message( template_lst:${template_lst} )
|
||||
|
||||
foreach( tpl ${template_lst} )
|
||||
#message( tpl:${tpl} )
|
||||
|
|
Loading…
Reference in a new issue