summaryrefslogtreecommitdiff
path: root/indra/cmake/TemplateCheck.cmake
blob: 24805b421496bf315c24ba2ad5194c30830ea686 (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 ${TEMPLATE_VERIFIER_OPTIONS}
      COMMENT "Verifying message template - See http://wiki.secondlife.com/wiki/Template_verifier.py"
      )
endmacro (check_message_template)