[CMake] Why does find_library prefer xxx.dll

Werner Smekal smekal at iap.tuwien.ac.at
Fri Dec 29 11:13:43 EST 2006


Hi,

I use find_library() to check if a library exists. If the libxxx.dll and 
the libxxx.a files are in the same directory, find_library() returns 
libxxx.dll - but I can't link against this library (windows case).

I could regex replace the dll with the the correct suffix, but is there 
a way to tell find_library() to return the correct filename?

Thanks,
Werner

-- 
Dipl. Ing. Werner Smekal
Institut fuer Allgemeine Physik
Technische Universitaet Wien
Wiedner Hauptstr 8-10
A-1040 Wien
Austria

email: smekal at iap.tuwien.ac.at
web:   http://www.iap.tuwien.ac.at/~smekal
phone: +43-(0)1-58801-13463 (office)
        +43-(0)1-58801-13469 (laboratory)
fax:   +43-(0)1-58801-13499


More information about the CMake mailing list