summaryrefslogtreecommitdiff
path: root/indra/cmake/TemplateCheck.cmake
blob: fa4e387dd5c60aac177fb36fa3bfc1ddc0ed2b75 (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}
      POST_BUILD
      COMMAND ${PYTHON_EXECUTABLE}
      ARGS ${SCRIPTS_DIR}/template_verifier.py
           --mode=development --cache_master
      COMMENT "Verifying message template"
      )
endmacro (check_message_template)