From f401a57ad3503c83537ea869cf4cd246d842bfc0 Mon Sep 17 00:00:00 2001 From: srit Date: Mon, 21 Mar 2011 17:45:11 +0000 Subject: [PATCH] Fixed bugs in libstatgrab --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 563db00..0becec0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,9 +45,12 @@ ENDIF (CLITK_GENGETOPT STREQUAL "CLITK_GENGETOPT-NOTFOUND") #========================================================= # Find libstatgrab is installed, add clitkMemoryUsage.cxx in the library -FIND_PROGRAM(LIBSTATGRAB NAMES statgrab PATHS) +FIND_LIBRARY(LIBSTATGRAB NAMES statgrab PATHS) IF (${LIBSTATGRAB} MATCHES "LIBSTATGRAB-NOTFOUND") MESSAGE("Install libstatgrab (http://www.i-scream.org/libstatgrab/) for memory usage information") + SET(CLITK_MEMORY_INFO OFF) +ELSE (${LIBSTATGRAB} MATCHES "LIBSTATGRAB-NOTFOUND") + SET(CLITK_MEMORY_INFO ON) ENDIF (${LIBSTATGRAB} MATCHES "LIBSTATGRAB-NOTFOUND") #========================================================= -- 2.47.1