[CMake] FIND_LIBRARY & mingw

Alexander.Camek at elektrobit.com Alexander.Camek at elektrobit.com
Tue Oct 16 05:40:02 EDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hi Christian,


> it looks like FIND_LIBRARY is using a .lib if it can't find a 
> .a/.dll.a when using the mingw generator (see also
> http://lists.kde.org/?l=kde-windows&m=119248363310566&w=2)
> 
> Is this a intented behaviour?

Normally under windows you will need to link against a .lib.
CMake default settings is to look for .lib files, so this is a intentend behaviour.

So look in the file Windows.cmake in your Cmake installation path, there under modules\plattform.
There it is set SET(CMAKE_FIND_LIBRARY_SUFFIXES ".lib")

Greetings

Alexander

-----BEGIN PGP SIGNATURE-----
Version: CryptoEx 3.0.9.0 <http://www.cryptoex.com>
Comment: CryptoEx Security Software - Desktop Platform v3

iQA/AwUBRxSG8kBUULWq6X/JEQJBbgCfYHGm2grPVMKR209cA3o3+wEjD9kAnRBi
WUv72JI/hwBALftpQAm7dzPf
=u+1Y
-----END PGP SIGNATURE-----


----------------------------------------------------------------
Please note: This e-mail may contain confidential information
intended solely for the addressee. If you have received this
e-mail in error, please do not disclose it to anyone, notify
the sender promptly, and delete the message from your system.
Thank you.



More information about the CMake mailing list