From: srit Date: Mon, 21 Mar 2011 17:45:11 +0000 (+0000) Subject: Fixed bugs in libstatgrab X-Git-Tag: v1.2.0~143 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=f401a57ad3503c83537ea869cf4cd246d842bfc0;p=clitk.git Fixed bugs in libstatgrab --- 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") #=========================================================