summaryrefslogtreecommitdiff
path: root/cmake/misc.cmake
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2015-11-22 07:20:15 +0100
committerSergei Golubchik <serg@mariadb.org>2015-11-23 16:02:56 +0100
commit58a6b9ebffc88c38251d55338247c3d936b55c30 (patch)
treec001d6a0fa0a06b344735deb7d85b2ea427c4959 /cmake/misc.cmake
parent4f84d9ce888864bd4fd3863ace3df33a64236d6b (diff)
downloadmariadb-git-58a6b9ebffc88c38251d55338247c3d936b55c30.tar.gz
cmake: message_once
Diffstat (limited to 'cmake/misc.cmake')
-rw-r--r--cmake/misc.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmake/misc.cmake b/cmake/misc.cmake
new file mode 100644
index 00000000000..c87fc41e8e3
--- /dev/null
+++ b/cmake/misc.cmake
@@ -0,0 +1,6 @@
+FUNCTION(MESSAGE_ONCE id out)
+ IF(NOT __msg1_${id} STREQUAL "${out}")
+ MESSAGE(STATUS "${out}")
+ ENDIF()
+ SET(__msg1_${id} "${out}" CACHE INTERNAL "")
+ENDFUNCTION()