[CMake] find_library returns the .dll on MinGW
David Demelier
demelier.david at gmail.com
Fri Dec 16 05:44:05 EST 2016
Hello,
I have the following files:
D:/env/mingw64/lib/libzip.dll.a
D:/env/mingw64/bin/libzip.dll
The following environment:
PATH=D:/env/mingw64/bin
CMAKE_PREFIX_PATH=D:/env/mingw64
Using this:
find_library(
ZIP_LIBRARY
NAMES zip libzip
)
I got this in the CMakeCache.txt:
//Path to a library.
ZIP_LIBRARY:FILEPATH=D:/env/mingw64/bin/libzip.dll
Is there any reason why find_library searches for the .dll instead of
the .a in that case? Is there a quick fix or I do something wrong?
Regards,
--
Demelier David
More information about the CMake
mailing list