Providing more information if ENABLE_GPERFTOOLS is set to ON and the

library is (or it is not) found in the system.
This commit is contained in:
Carles Fernandez 2014-08-11 13:39:12 +02:00
parent 2445620e76
commit df6b282582
1 changed files with 5 additions and 2 deletions

View File

@ -769,9 +769,12 @@ endif(ENABLE_OPENCL)
if(ENABLE_GPERFTOOLS)
find_package(Gperftools)
if ( NOT GPERFTOOLS_FOUND )
message(STATUS "The optional library GPerftools has not been found.")
message(STATUS "Although ENABLE_GPERFTOOLS has been set to ON, GPerftools has not been found.")
message(STATUS "Binaries will be compiled without 'tcmalloc' and 'profiler' libraries.")
message(STATUS "You can install GPerftools from http://code.google.com/p/gperftools/")
else( NOT GPERFTOOLS_FOUND )
message (STATUS "GPerftools library found." )
message(STATUS "GPerftools libraries found." )
message(STATUS "Binaries will be compiled with 'tcmalloc' and 'profiler' libraries.")
endif( NOT GPERFTOOLS_FOUND )
endif(ENABLE_GPERFTOOLS)