Do not build modules listed in SKIP_MODULES.
This commit is contained in:
parent
05e4bb9a16
commit
44d2c602e3
@ -1,6 +1,15 @@
|
|||||||
|
include( CMakeColors )
|
||||||
|
|
||||||
file( GLOB SUBDIRECTORIES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*" )
|
file( GLOB SUBDIRECTORIES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*" )
|
||||||
|
string( REPLACE " " ";" SKIP_LIST "${SKIP_MODULES}" )
|
||||||
foreach( SUBDIRECTORY ${SUBDIRECTORIES} )
|
foreach( SUBDIRECTORY ${SUBDIRECTORIES} )
|
||||||
if( IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/${SUBDIRECTORY}" )
|
list( FIND SKIP_LIST ${SUBDIRECTORY} DO_SKIP )
|
||||||
|
|
||||||
|
if( NOT DO_SKIP EQUAL -1 )
|
||||||
|
message( "${ColorReset}-- Skipping module ${BoldRed}${SUBDIRECTORY}${ColorReset}." )
|
||||||
|
message( "" )
|
||||||
|
elseif( ( IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/${SUBDIRECTORY}" ) AND
|
||||||
|
( DO_SKIP EQUAL -1 ) )
|
||||||
calamares_add_module_subdirectory( ${SUBDIRECTORY} )
|
calamares_add_module_subdirectory( ${SUBDIRECTORY} )
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
Loading…
Reference in New Issue
Block a user