From: tbaudier Date: Tue, 28 Feb 2017 15:43:49 +0000 (+0100) Subject: Uncomment libstatgrab dependency X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=62af89206a417e248c3f700add3afc500606770e;p=clitk.git Uncomment libstatgrab dependency --- diff --git a/cmake/dependencies.cmake b/cmake/dependencies.cmake index bdd6316..a871fec 100644 --- a/cmake/dependencies.cmake +++ b/cmake/dependencies.cmake @@ -44,15 +44,15 @@ find_package(Gengetopt) #========================================================= # Find libstatgrab is installed, add clitkMemoryUsage.cxx in the library -#if(NOT DEFINED CLITK_MEMORY_INFO OR CLITK_MEMORY_INFO) -# find_library(LIBSTATGRAB NAMES statgrab PATHS) -# if(${LIBSTATGRAB} MATCHES "LIBSTATGRAB-NOTFOUND") +if(NOT DEFINED CLITK_MEMORY_INFO OR CLITK_MEMORY_INFO) + 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") -#endif() + else(${LIBSTATGRAB} MATCHES "LIBSTATGRAB-NOTFOUND") + set(CLITK_MEMORY_INFO ON) + endif(${LIBSTATGRAB} MATCHES "LIBSTATGRAB-NOTFOUND") +endif() #=========================================================