[CMake] conflicting types for built-in function 'snprintf'
Eric Noulard
eric.noulard at gmail.com
Thu Jul 9 03:29:53 EDT 2009
2009/7/9 Mathieu Malaterre <mathieu.malaterre at gmail.com>:
> On Wed, Jul 8, 2009 at 11:22 PM, Alexander
> Neundorf<a.neundorf-work at gmx.net> wrote:
>>
>> Did you try using check_symbol_exists() ?
>
> Indeed.
>
> Ref:
> http://public.kitware.com/Bug/view.php?id=8246
>
> Solution:
> INCLUDE(CheckSymbolExists)
> CHECK_SYMBOL_EXISTS(strcasecmp "strings.h" HAVE_STRCASECMP)
> CHECK_SYMBOL_EXISTS(strncasecmp "strings.h" HAVE_STRNCASECMP)
> CHECK_SYMBOL_EXISTS(snprintf "stdio.h" HAVE_SNPRINTF)
Didn't use CHECK_SYMBOL_EXISTS before, definitely the better solution
thanks Alex+Mathieu
--
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org
More information about the CMake
mailing list