[CMake] Which to use: find_file and find_library; or check_include_file and check_library_exists
Marcel Loose
loose at astron.nl
Tue Apr 21 05:19:01 EDT 2009
Hi all,
I was wondering what is the preferred way to look for a library and/or a
header file. I noticed that most (if not all) pre-packaged cmake modules
use find_file and find_library.
Is there a reason that they do not use check_include_file and
check_library_exists?
If writing my own cmake modules, should I use find_file and
find_library, or check_include_file and check_library_exists?
Best regards,
Marcel Loose.
More information about the CMake
mailing list