summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorPino Toscano <pino@kde.org>2010-03-06 17:13:30 +0100
committerPino Toscano <pino@kde.org>2010-03-06 17:13:30 +0100
commitbda6e7cd089f2970af2e9540b4415633ffcf0ebb (patch)
treea75f48600ada7a2bf72f12a8e7fa0668c9a9bcae /cmake
parentd313c0f508711b3b7166b84608c43ebf1f07194b (diff)
[CMake] add a show_end_message() macro to show a generic string as value
make show_end_message_yesno() call it with the proper "yes" or "no" string
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/PopplerMacros.cmake9
1 files changed, 7 insertions, 2 deletions
diff --git a/cmake/modules/PopplerMacros.cmake b/cmake/modules/PopplerMacros.cmake
index aa543116..0495777f 100644
--- a/cmake/modules/PopplerMacros.cmake
+++ b/cmake/modules/PopplerMacros.cmake
@@ -49,20 +49,25 @@ macro(POPPLER_CREATE_INSTALL_PKGCONFIG generated_file install_location)
endif(NOT WIN32)
endmacro(POPPLER_CREATE_INSTALL_PKGCONFIG)
-macro(SHOW_END_MESSAGE_YESNO what enabled)
+macro(SHOW_END_MESSAGE what value)
string(LENGTH ${what} length_what)
math(EXPR left_char "20 - ${length_what}")
set(blanks)
foreach(_i RANGE 1 ${left_char})
set(blanks "${blanks} ")
endforeach(_i)
+
+ message(" ${what}:${blanks} ${value}")
+endmacro(SHOW_END_MESSAGE)
+
+macro(SHOW_END_MESSAGE_YESNO what enabled)
if(${enabled})
set(enabled_string "yes")
else(${enabled})
set(enabled_string "no")
endif(${enabled})
- message(" ${what}:${blanks} ${enabled_string}")
+ show_end_message("${what}" "${enabled_string}")
endmacro(SHOW_END_MESSAGE_YESNO)