From a113230ffecfc416608859a070c423246db98839 Mon Sep 17 00:00:00 2001 From: Nils Wentzell Date: Thu, 25 Apr 2019 13:54:23 -0400 Subject: [PATCH] [cmake] Avoid use of list(FILTER ..) to restore cmake version 3.0.2 compatibility --- python/app4triqs/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/app4triqs/CMakeLists.txt b/python/app4triqs/CMakeLists.txt index 3eb11b72..2de26908 100644 --- a/python/app4triqs/CMakeLists.txt +++ b/python/app4triqs/CMakeLists.txt @@ -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()