summaryrefslogtreecommitdiff
path: root/cmake/misc.cmake
diff options
context:
space:
mode:
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()