mirror of
https://github.com/triqs/dft_tools
synced 2024-10-18 22:11:40 +02:00
[cmake] Avoid use of list(FILTER ..) to restore cmake version 3.0.2 compatibility
This commit is contained in:
parent
e03eb002cf
commit
a113230ffe
@ -7,7 +7,8 @@ configure_file(version.py.in version.py)
|
||||
|
||||
# All Python files. Copy them in the build dir to have a complete package for the tests.
|
||||
file(GLOB_RECURSE python_sources RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.py)
|
||||
list(FILTER python_sources EXCLUDE REGEX "_desc.py")
|
||||
file(GLOB_RECURSE wrap_generators RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *_desc.py)
|
||||
list(REMOVE_ITEM python_sources "${wrap_generators}")
|
||||
foreach(file ${python_sources})
|
||||
configure_file(${file} ${file} COPYONLY)
|
||||
endforeach()
|
||||
|
Loading…
Reference in New Issue
Block a user