[CMake] CHECK_FUNCTION_EXISTS and -Werror

Mathieu Malaterre mathieu.malaterre at gmail.com
Fri Dec 5 06:27:49 EST 2008


On Fri, Dec 5, 2008 at 12:12 PM, Eric Noulard <eric.noulard at gmail.com> wrote:
> 2008/12/5 Mathieu Malaterre <mathieu.malaterre at gmail.com>:
>> 'lo there,
>>
>>  I had my CFLAGS set to -Werror, and because of that a try compile failed with:
>>
> [...]
>> /usr/share/cmake-2.6/Modules/CheckFunctionExists.c:3: warning:
>> conflicting types for built-in function 'strncasecmp'
>>
>>
>>  Does this means strncasecmp is some kinf of function known by the
>> gcc compiler ?
>
> It should comes from  #include <string.h>
> and not from gcc itself but I may be wrong...

Ok that's a builtin function since gcc 4.1 (at least).

http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/Other-Builtins.html

-- 
Mathieu


More information about the CMake mailing list