On 07/19/2015 03:07 PM, Ralf Habacker wrote:
> The check is performed with CheckFunctionExists.c, which converts the
> function name into a prototype of the form 'char BZ2_bzCompressInit()',
> while in real it is
> 
> int BZ2_bzCompressInit ( bz_stream *strm, 
>                          int blockSize100k, 
>                          int verbosity,
>                          int workFactor );

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.

Thanks,
-Brad

-- 

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-developers

Reply via email to