[CMake] windows link error

Tyler Roscoe tyler at cryptio.net
Thu Mar 4 19:35:00 EST 2010


On Thu, Mar 04, 2010 at 06:19:03PM -0500, Simmons, Aaron wrote:
> Thanks-- the cmake cache is where the trouble is:
> 	CMAKE_LINKER:FILEPATH=C:/strawberry/c/bin/ld.exe
>
> I'm not sure where the bug is (if there is one).  Should re-running
> cmake recreate the cache?  Why does the presence of strawberry perl
> confuse cmake?

If CMake recreated the cache each time, it wouldn't be much of a cache
now would it :)?

Semi-educated guess: CMake was looking for things that looked like
linkers in your PATH. For whatever reason (running CMake from an
environment where that magic Visual Studio .bat file hadn't been sourced
and thus your environment was incomplete), it didn't find the VS linker
so it kept looking and found something called ld.exe in your PATH.

It's hard to say whether this is a bug because we don't know anything
about your environment. If you can reproduce this problem, I'm sure the
experts would like to see it. But if all you have a is a CMake binary
directory of unknown age and origin, that's not so helpful.

tyler


More information about the CMake mailing list