[CMake] a cmake module that improves upon CheckLibrariesExists

Joachim Wuttke j.wuttke at fz-juelich.de
Fri Sep 18 09:45:17 EDT 2015


may I invite your comments at

http://codereview.stackexchange.com/questions/105020/a-cmake-module-that-improves-upon-checklibrariesexists

where I am proposing a module AssertLibraryFunction that improves
upon CheckLibrariesExists in two respects:

- It honors the optional argument REQUIRED of find_package: if the check 
fails, it raises a FATAL_ERROR. It also honors QUIET.
- Its result is cached in a variable named ${LIBNAME}_${FUNCTION}. 
Therefore, argument 4 of CheckLibrariesExists, VARIABLE, is no longer 
needed.

Thanks for any feedback (preferentially on said codereview site,
if that is compatible with etiquette at this mailing list),

Joachim


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5013 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150918/a2decd37/attachment-0001.bin>


More information about the CMake mailing list