Re: [pcre-dev] CMake for GCOV

Top Page
Delete this message
Author: Christian Ehrlicher
Date:  
To: pcre-dev
Subject: Re: [pcre-dev] CMake for GCOV
Am 23.10.2012 12:49, schrieb Philip Hazel:
> I have added support for Valgrind and GCOV to the CMake configuration
> files, but I don't know how to check that the C compiler is gcc, which
> is a test that should be applied for GCOV use. Is there a CMake expert
> here who can advise?
>

CMAKE_COMPILER_IS_GNUCC should help here. See also
http://www.cmake.org/Wiki/CMake_Useful_Variables


Christian