You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by kg...@apache.org on 2014/01/28 21:46:25 UTC
svn commit: r1562224 - /qpid/proton/trunk/proton-c/CMakeLists.txt
Author: kgiusti
Date: Tue Jan 28 20:46:25 2014
New Revision: 1562224
URL: http://svn.apache.org/r1562224
Log:
PROTON-498: fix the CMake valgrind logic
Modified:
qpid/proton/trunk/proton-c/CMakeLists.txt
Modified: qpid/proton/trunk/proton-c/CMakeLists.txt
URL: http://svn.apache.org/viewvc/qpid/proton/trunk/proton-c/CMakeLists.txt?rev=1562224&r1=1562223&r2=1562224&view=diff
==============================================================================
--- qpid/proton/trunk/proton-c/CMakeLists.txt (original)
+++ qpid/proton/trunk/proton-c/CMakeLists.txt Tue Jan 28 20:46:25 2014
@@ -419,11 +419,13 @@ set (env_py "${CMAKE_CURRENT_SOURCE_DIR}
find_program(VALGRIND valgrind DOC "Location of the valgrind program")
option(ENABLE_VALGRIND "Use valgrind to detect run-time problems" ON)
-if (ENABLE_VALGRIND AND NOT VALGRIND)
- message(STATUS "Can't locate the valgrind command; no run-time error detection")
-else (ENABLE_VALGRIND AND NOT VALGRIND)
- set (VALGRIND_ENV "VALGRIND=${VALGRIND}")
-endif (ENABLE_VALGRIND AND NOT VALGRIND)
+if (ENABLE_VALGRIND)
+ if (VALGRIND STREQUAL VALGRIND-NOTFOUND)
+ message(STATUS "Can't locate the valgrind command; no run-time error detection")
+ else (VALGRIND STREQUAL VALGRIND-NOTFOUND)
+ set (VALGRIND_ENV "VALGRIND=${VALGRIND}")
+ endif (VALGRIND STREQUAL VALGRIND-NOTFOUND)
+endif (ENABLE_VALGRIND)
# c tests:
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org