Skip to content

Commit 27476a7

Browse files
committed
fix(cmake): replace hand-rolled _mfc_gen_inputs list with GLOB_RECURSE
1 parent 8e0a394 commit 27476a7

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -465,12 +465,8 @@ endmacro()
465465
# include directories before HANDLE_SOURCES globs them for Fypp.
466466
find_package(Python3 REQUIRED COMPONENTS Interpreter)
467467
set(_mfc_gen_stamp "${CMAKE_BINARY_DIR}/mfc_params_gen.stamp")
468-
set(_mfc_gen_inputs
469-
"${CMAKE_CURRENT_SOURCE_DIR}/toolchain/mfc/params/generators/cmake_gen.py"
470-
"${CMAKE_CURRENT_SOURCE_DIR}/toolchain/mfc/params/generators/fortran_gen.py"
471-
"${CMAKE_CURRENT_SOURCE_DIR}/toolchain/mfc/params/definitions.py"
472-
"${CMAKE_CURRENT_SOURCE_DIR}/toolchain/mfc/params/registry.py"
473-
"${CMAKE_CURRENT_SOURCE_DIR}/toolchain/mfc/params/schema.py"
468+
file(GLOB_RECURSE _mfc_gen_inputs
469+
"${CMAKE_CURRENT_SOURCE_DIR}/toolchain/mfc/params/*.py"
474470
)
475471
set(_mfc_needs_regen FALSE)
476472
if(NOT EXISTS "${_mfc_gen_stamp}")

0 commit comments

Comments
 (0)