From 592518c157fdfaed8ab61766665291d87aca657e Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Sat, 14 Nov 2020 13:02:24 -0500 Subject: [PATCH] modules/CMakeLists.txt iterates topologically sorted list of modules --- modules/CMakeLists.txt | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/modules/CMakeLists.txt b/modules/CMakeLists.txt index 5c55ff643..d4643834c 100644 --- a/modules/CMakeLists.txt +++ b/modules/CMakeLists.txt @@ -1,12 +1,20 @@ # Include the modules that we'll build +# The list of modules is ordered so that each module occurs after any others +# that it depends on +set( MODULES + mod-script-pipe +) if( NOT CMAKE_SYSTEM_NAME MATCHES "Windows" ) -add_subdirectory( mod-null ) -add_subdirectory( mod-nyq-bench ) + list( APPEND MODULES + mod-null + mod-nyq-bench + ) endif() -add_subdirectory( mod-script-pipe ) - +foreach( MODULE ${MODULES} ) + add_subdirectory("${MODULE}") +endforeach() if( NOT CMAKE_SYSTEM_NAME MATCHES "Darwin" ) if( NOT "${CMAKE_GENERATOR}" MATCHES "Visual Studio*")