Skip to content

Commit

Permalink
Adding the use of the template type. Refs #4368.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterfpeterson committed Dec 29, 2011
1 parent 63361e2 commit 979f043
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Code/Mantid/Build/CMake/FindCppcheck.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ function(add_cppcheck _name)

if (CPPCHECK_GENERATE_XML )
add_custom_target( cppcheck_${_name}
COMMAND ${CPPCHECK_EXECUTABLE} ${CPPCHECK_ARGS} --xml ${_files} 2> ${CMAKE_BINARY_DIR}/cppcheck-${_name}.xml
COMMAND ${CPPCHECK_EXECUTABLE} ${CPPCHECK_TEMPLATE_ARG} ${CPPCHECK_ARGS} --xml --xml-version=2 ${_files} 2> ${CMAKE_BINARY_DIR}/cppcheck-${_name}.xml
DEPENDS ${_files}
COMMENT "cppcheck_${_name}: Running cppcheck to generate cppcheck-${_name}.xml"
)
else (CPPCHECK_GENERATE_XML )
add_custom_target( cppcheck_${_name}
COMMAND ${CPPCHECK_EXECUTABLE} ${CPPCHECK_ARGS} ${_files}
COMMAND ${CPPCHECK_EXECUTABLE} ${CPPCHECK_TEMPLATE_ARG} ${CPPCHECK_ARGS} ${_files}
DEPENDS ${_files}
COMMENT "cppcheck_${_name}: Running cppcheck on ${_name} source files"
)
Expand Down

0 comments on commit 979f043

Please sign in to comment.