From 0bf1df72cdc023a5d1ca1c3ec945ce6d71ec2626 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Mon, 22 Mar 2021 13:49:04 +0100 Subject: [PATCH] CMake: report Python module name without subdirectory FIXES ##1641 --- CMakeModules/CalamaresAddModuleSubdirectory.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeModules/CalamaresAddModuleSubdirectory.cmake b/CMakeModules/CalamaresAddModuleSubdirectory.cmake index 87f8547f8..186c03d00 100644 --- a/CMakeModules/CalamaresAddModuleSubdirectory.cmake +++ b/CMakeModules/CalamaresAddModuleSubdirectory.cmake @@ -59,10 +59,10 @@ function( calamares_add_module_subdirectory ) if( _dirname ) # Remove the dirname and any leftover leading /s string( REGEX REPLACE "^${_dirname}/*" "" _modulename "${SUBDIRECTORY}" ) - set( MODULE_DESTINATION ${MODULES_DIR}/${_modulename} ) else() - set( MODULE_DESTINATION ${MODULES_DIR}/${SUBDIRECTORY} ) + set( _modulename ${SUBDIRECTORY} ) endif() + set( MODULE_DESTINATION ${MODULES_DIR}/${_modulename} ) # Read module.desc, check that the interface type is supported. # @@ -114,7 +114,7 @@ function( calamares_add_module_subdirectory ) endif() endforeach() - message( "-- ${BoldYellow}Found ${CALAMARES_APPLICATION_NAME} module: ${BoldRed}${SUBDIRECTORY}${ColorReset}" ) + message( "-- ${BoldYellow}Found ${CALAMARES_APPLICATION_NAME} module: ${BoldRed}${_modulename}${ColorReset}" ) message( " ${Green}TYPE:${ColorReset} jobmodule" ) message( " ${Green}MODULE_DESTINATION:${ColorReset} ${MODULE_DESTINATION}" ) if( MODULE_CONFIG_FILES )