Re: [cmake-developers] Test for compiler flags ineffective with xlc?

2011-08-11 Thread Alexander Neundorf
Hi Stephen :-)

On Thursday 11 August 2011, Stephen Kelly wrote:
> Hi,
> 
> In this build log the test for -fvisibility=hidden results in success, but
> when the flag is used it fails:
> 
> http://www.cdash.org/CDash/testDetails.php?test=109109951&build=1419259
> 
> I'm guessing that compiler treats -f as a filename for some reason.
> Can anything be done about that? Should I just exclude that platform from
> performing the test? How? 
> Would if (${CMAKE_CXX_COMPILER_ID} MATCHES xlC) match?

Should be "XL", see Modules/CMakeCCompilerId.c.in, there they are all defined.
You can also see this here in the output from the cmake run:
http://www.cdash.org/CDash/viewConfigure.php?buildid=1419259

Alex
___
cmake-developers mailing list
cmake-developers@cmake.org
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers


[cmake-developers] Test for compiler flags ineffective with xlc?

2011-08-11 Thread Stephen Kelly

Hi,

In this build log the test for -fvisibility=hidden results in success, but 
when the flag is used it fails:

http://www.cdash.org/CDash/testDetails.php?test=109109951&build=1419259

I'm guessing that compiler treats -f as a filename for some reason. Can 
anything be done about that? Should I just exclude that platform from 
performing the test? How? Would if (${CMAKE_CXX_COMPILER_ID} MATCHES xlC) 
match?

Thanks,

Steve.


___
cmake-developers mailing list
cmake-developers@cmake.org
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers