Fix output of CMake files in metadata
@@ -183,7 +183,7 @@ function(afr_write_metadata)
foreach(cmake_file IN LISTS AFR_METADATA_CMAKE_FILES)
get_filename_component(module_dir "${cmake_file}" DIRECTORY)
get_filename_component(module "${module_dir}" NAME)
- if(module IN_LIST AFR_MODULES_ENABLED)
+ if(module IN_LIST AFR_MODULES_ENABLED OR "demo_${module}" IN_LIST AFR_MODULES_ENABLED)
list(APPEND cmake_files "${cmake_file}")
list(APPEND src_console "${module_dir}")
endif()
