Re: [pcre-dev] CMake for GCOV

トップ ページ
このメッセージを削除
著者: Christian Ehrlicher
日付:  
To: pcre-dev
題目: 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