[CMake] Checking function or symbol in namespace

Jed Brown jed at 59A2.org
Fri Jan 22 04:33:56 EST 2010


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


More information about the CMake mailing list