[CMake] Fwd: How to add a lib in a target/tool independent way?
John Drescher
drescherjm at gmail.com
Tue Jul 20 17:31:33 EDT 2010
On Tue, Jul 20, 2010 at 5:24 PM, Claus Klein <claus.klein at arcormail.de> wrote:
> I have a cpp project with some lib targets and executables, which depends on
> the libs and the header files.
> I want to link the libs from my build/src tree and not the installed
> versions.
>
> With this snip below from my CMakeFile.txt it works on my MacBook and cygwin
> after a make clean,
> but with MVS2005, it will always try to link the desD.lib and not the
> desD.dll?
>
This is correct. It should be linking the .lib and not the .dll. The
.lib is an import library which is needed to use the .dll
John
--
John M. Drescher
More information about the CMake
mailing list