[cmake-developers] Patch for FindBZip2.cmake BZIP2_NEED_PREFIX issue with cross compiled mingw32 applications

Ralf Habacker ralf.habacker at freenet.de
Tue Jul 21 10:32:49 EDT 2015


Am 21.07.2015 um 15:46 schrieb Brad King:
> Rather than (or in addition to) changing to _BZ2_decompress, please look
> at changing the check to use CheckSymbolExists.  It allows the actual
> header to be included so we can test using the library the way the
> project will.  That is likely more robust.  Note that you may need
> to set CMAKE_REQUIRED_INCLUDES and CMAKE_REQUIRED_LIBRARIES to make
> sure the check is run with the desired bzip2 library.
Changed to use CheckSymbolExists, see append patch.

Regards
Ralf

-------------- next part --------------
A non-text attachment was scrubbed...
Name: findbzip2-mingw-need-prefix-fix.patch
Type: text/x-patch
Size: 766 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20150721/eac8971b/attachment.bin>


More information about the cmake-developers mailing list