better file globbing when doing an "in tree build"
This commit is contained in:
parent
a6a1ab5c27
commit
b2d4740423
1 changed files with 4 additions and 1 deletions
|
@ -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
|
# don't include CMakeLists.txt or CMakeLists.txt~ which could be in the GLOB list
|
||||||
string( REGEX REPLACE "CMakeLists.txt~*;?" "" template_lst "${template_lst}" )
|
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} )
|
foreach( tpl ${template_lst} )
|
||||||
#message( tpl:${tpl} )
|
#message( tpl:${tpl} )
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue