summaryrefslogtreecommitdiff
path: root/indra/cmake/TemplateCheck.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'indra/cmake/TemplateCheck.cmake')
-rw-r--r--indra/cmake/TemplateCheck.cmake14
1 files changed, 14 insertions, 0 deletions
diff --git a/indra/cmake/TemplateCheck.cmake b/indra/cmake/TemplateCheck.cmake
new file mode 100644
index 0000000000..3b73dc82df
--- /dev/null
+++ b/indra/cmake/TemplateCheck.cmake
@@ -0,0 +1,14 @@
+# -*- cmake -*-
+
+include(Python)
+
+macro (check_message_template _target)
+ add_custom_command(
+ TARGET ${_target}
+ PRE_LINK
+ COMMAND ${PYTHON_EXECUTABLE}
+ ARGS ${SCRIPTS_DIR}/template_verifier.py
+ --mode=development --cache_master
+ COMMENT "Verifying message template"
+ )
+endmacro (check_message_template)