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

Alexander Neundorf neundorf at kde.org
Thu Aug 11 15:56:06 EDT 2011


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<foo> 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



More information about the cmake-developers mailing list