[CMake] Check for working C compiler using: Visual Studio 10 -- broken

Mateusz Loskot mateusz at loskot.net
Wed Mar 6 06:52:04 EST 2013


On 5 March 2013 17:09, Bill Hoffman <bill.hoffman at kitware.com> wrote:
> On 3/5/2013 11:40 AM, Mateusz Loskot wrote:
>>
>> Nice tip with the solution in the CMakeTmp, I had no idea about it.
>>
>> I figured out that the VS2010 project there,
>> cmTryCompileExec3417082516.vcxproj,
>> specifies for linker  /INCREMENTAL:YES
>> If I change to /INCREMENTAL:NO, then it builds.
>>
>> Still not sure how the VS2010/VS2012 toolsets interfere here,
>> but it looks like this mess is not related to any problems with CMake.
>
> Seems to match what is in that stackoverflow article.

Yes, I have made a circle and came back to that solution.

> Taking off incremental seemed to fix the problem for them as well.   If you read that
> thread close, there seems to be ways to fix the problem...

Installing VS2010 SP1 as the only sensible option.

Thanks!

Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net


More information about the CMake mailing list