summaryrefslogtreecommitdiff
path: root/indra/cmake/TemplateCheck.cmake
blob: 2fada2eda979e9eb17072bd54ee554ed6446a641 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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 --master_url=${TEMPLATE_VERIFIER_MASTER_URL} ${TEMPLATE_VERIFIER_OPTIONS}
      COMMENT "Verifying message template - See http://wiki.secondlife.com/wiki/Template_verifier.py"
      )
endmacro (check_message_template)