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 -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake