~ubuntu-branches/ubuntu/trusty/unity-voice/trusty-proposed

« back to all changes in this revision

Viewing changes to cmake/FindValgrind.cmake

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release, Pete Woods, Ubuntu daily release
  • Date: 2014-01-08 18:22:38 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20140108182238-65kc01axia74spc5
Tags: 0.1+14.04.20140108.1-0ubuntu1
[ Pete Woods ]
* Enable unit tests during debian package build.
* Valgrind is not available on all platforms.

[ Ubuntu daily release ]
* Automatic snapshot from revision 27

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
)
27
27
 
28
28
function(add_valgrind_test NAME EXECUTABLE)
29
 
        if(ENABLE_MEMCHECK_OPTION)
 
29
        if(ENABLE_MEMCHECK_OPTION AND VALGRIND_PROGRAM)
30
30
                add_test(${NAME} ${VALGRIND_PROGRAM} ${VALGRIND_PROGRAM_OPTIONS} "${CMAKE_CURRENT_BINARY_DIR}/${EXECUTABLE}")
31
31
        else()
32
32
                add_test(${NAME} ${EXECUTABLE})