mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-08 07:34:34 -04:00
CMake: factor out explanation of skipped modules.
Make a function out of explaining-skipped-modules, and call it not only after collecting all the modules, but also after the feature summary, so that it's quite clear which modules are skipped.
This commit is contained in:
parent
58252fc16d
commit
6e01bb0fa4
3 changed files with 21 additions and 11 deletions
|
@ -1,4 +1,3 @@
|
|||
include( CMakeColors )
|
||||
include( CalamaresAddTranslations )
|
||||
|
||||
set( MODULE_DATA_DESTINATION share/calamares/modules )
|
||||
|
@ -9,6 +8,16 @@ macro( calamares_skip_module )
|
|||
set( SKIPPED_MODULES ${SKIPPED_MODULES} ${ARGV} PARENT_SCOPE )
|
||||
endmacro()
|
||||
|
||||
function( calamares_explain_skipped_modules )
|
||||
if ( ARGN )
|
||||
message( "${ColorReset}-- Skipped modules:" )
|
||||
foreach( SUBDIRECTORY ${ARGN} )
|
||||
message( "${ColorReset}-- Skipped ${BoldRed}${SUBDIRECTORY}${ColorReset}." )
|
||||
endforeach()
|
||||
message( "" )
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
function( calamares_add_module_subdirectory )
|
||||
set( SUBDIRECTORY ${ARGV0} )
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue