[cmake-developers] CMake can not determine linker language for target:testTarget

Stephen Kelly steveire at gmail.com
Thu May 16 15:39:42 EDT 2013


Brad King wrote:

> On 05/16/2013 03:07 PM, Stephen Kelly wrote:
>> 
>> Any idea what is causing this dashboard problem in the continuous tests?
>> 
>>  http://open.cdash.org/testDetails.php?test=190528962&build=2907105
>> 
>> It works for me...
> 
> You need to enable_language(CXX) before using C++ sources.
> 
> Fixed:
> 
>  http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=408961e9

Thanks! I see now that the CMakeLists has:

 project(${RunCMake_TEST} NONE)

but now I wonder why the ImportedTarget.cmake test works without errors. I 
guess the error it is testing for occurs before the link language error 
occurs?

Thanks,

Steve.





More information about the cmake-developers mailing list