[CMake] Checking function or symbol in namespace
Marcel Loose
loose at astron.nl
Fri Jan 22 05:10:05 EST 2010
On Fri, 2010-01-22 at 10:33 +0100, Jed Brown wrote:
> On Fri, 22 Jan 2010 10:24:30 +0100, "Marcel Loose" <loose at astron.nl>
wrote:
> > Partly true.
> > If the preprocessor symbol provides a generic name for a function,
which
> > may have different names on different platforms, it will still work.
> >
> > For example.
> >
> > # define basename __xdg_basename
>
> No.
>
> It will *not* work in this case because no headers are included when
the
> test program is linked.
>
> Jed
You're right. Sorry. I overlooked the fact that you cannot pass the name
of a header file to include to check_function_exists().
Best regards,
Marcel Loose.
More information about the CMake
mailing list