From ca247c26ca1f7b6ffddcd88f57b1ed5b2e8df3c9 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Wed, 2 Jul 2014 11:59:55 +0200 Subject: [PATCH] CalamaresAddPlugin more relevant output. --- CalamaresAddPlugin.cmake | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/CalamaresAddPlugin.cmake b/CalamaresAddPlugin.cmake index b177e58d3..a00c36c72 100644 --- a/CalamaresAddPlugin.cmake +++ b/CalamaresAddPlugin.cmake @@ -16,15 +16,17 @@ function(calamares_add_plugin) include(CMakeColors) message("-- ${BoldYellow}Found ${CALAMARES_APPLICATION_NAME} module: ${BoldRed}${PLUGIN_NAME}${ColorReset}") - message(" ${Green}SOURCES:${ColorReset} ${PLUGIN_SOURCES}") - message(" ${Green}LINK_LIBRARIES:${ColorReset} ${PLUGIN_LINK_LIBRARIES}") - message(" ${Green}UI:${ColorReset} ${PLUGIN_UI}") - message(" ${Green}TYPE:${ColorReset} ${PLUGIN_TYPE}") - message(" ${Green}EXPORT_MACRO:${ColorReset} ${PLUGIN_EXPORT_MACRO}") - message(" ${Green}NO_INSTALL:${ColorReset} ${PLUGIN_NO_INSTALL}") - message(" ${Green}CONFIG_FILE:${ColorReset} ${PLUGIN_CONFIG_FILE}") - message(" ${Green}PLUGIN_DESTINATION:${ColorReset} ${PLUGIN_DESTINATION}") - + if( NOT CMAKE_BUILD_TYPE STREQUAL "Release" ) + message(" ${Green}SOURCES:${ColorReset} ${PLUGIN_SOURCES}") + message(" ${Green}LINK_LIBRARIES:${ColorReset} ${PLUGIN_LINK_LIBRARIES}") + message(" ${Green}UI:${ColorReset} ${PLUGIN_UI}") + message(" ${Green}TYPE:${ColorReset} ${PLUGIN_TYPE}") + message(" ${Green}EXPORT_MACRO:${ColorReset} ${PLUGIN_EXPORT_MACRO}") + message(" ${Green}NO_INSTALL:${ColorReset} ${PLUGIN_NO_INSTALL}") + message(" ${Green}CONFIG_FILE:${ColorReset} ${PLUGIN_CONFIG_FILE}") + message(" ${Green}PLUGIN_DESTINATION:${ColorReset} ${PLUGIN_DESTINATION}") + message("") + endif() # create target name once for convenience set(target "calamares_${PLUGIN_TYPE}_${PLUGIN_NAME}") @@ -58,9 +60,6 @@ function(calamares_add_plugin) list(APPEND calamares_add_library_args "INSTALL_BINDIR" "${PLUGIN_DESTINATION}") - #message(" ${Green}CalamaresAddLibrary arguments:${ColorReset} ${calamares_add_library_args}") - message("") - calamares_add_library(${calamares_add_library_args}) configure_file(${PLUGIN_CONFIG_FILE} ${PLUGIN_CONFIG_FILE} COPYONLY)