Conditionally support the CONFIGURE_DEPENDS flag for globbing of CMake 3.12 and later.

# Conflicts:
#	cmake/Modules/Packages/COLVARS.cmake
This commit is contained in:
Axel Kohlmeyer
2023-01-06 18:54:01 -05:00
parent a7ba11fee9
commit 3036f8d4c6
12 changed files with 48 additions and 41 deletions

View File

@ -1,5 +1,5 @@
function(FindStyleHeaders path style_class file_pattern headers)
file(GLOB files "${path}/${file_pattern}*.h")
file(GLOB files ${CONFIGURE_DEPENDS} "${path}/${file_pattern}*.h")
get_property(hlist GLOBAL PROPERTY ${headers})
foreach(file_name ${files})
@ -184,7 +184,7 @@ endfunction(DetectBuildSystemConflict)
function(FindPackagesHeaders path style_class file_pattern headers)
file(GLOB files "${path}/${file_pattern}*.h")
file(GLOB files ${CONFIGURE_DEPENDS} "${path}/${file_pattern}*.h")
get_property(plist GLOBAL PROPERTY ${headers})
foreach(file_name ${files})