[cmake-developers] C++11 and target_compiler_feature proposal

Brad King brad.king at kitware.com
Fri Oct 25 11:38:07 EDT 2013


On 10/24/2013 10:23 AM, Stephen Kelly wrote:
>> Also when you run the compiler you need to capture all stdout/stderr
>> so that it never leaks through to the user-visible cmake configuration
>> output.  The RunCMake.* tests that failed last night were mostly due
>> to compilers writing to stderr even when nothing is wrong and therefore
>> messing with the expected output matching.
> 
> Should be all fixed now.

Your patch did:

+    RESULT_VARIABLE _result
+    OUTPUT_VARIABLE _output

but RESULT_VARIABLE is for the return code or administrative
error message.  You also need

  ERROR_VARIABLE _error

to get stderr.  Without this the tests still failed last night.

-Brad



More information about the cmake-developers mailing list