Re: [CMake] Which to use: find_file and find_lib rary; or check_include_file and check_lib rary_exists

2009-04-22 Thread Alexander Neundorf
On Wednesday 22 April 2009, Marcel Loose wrote: > Hi Alex, > > So if I understand it correctly: > The find_file() and find_library() commands should be used in > FindXXX.cmake files; the check_include_file() and check_library_exists() > command can in fact only be used in CMakeLists.txt files. > Ri

Re: [CMake] Which to use: find_file and find_lib rary; or check_include_file and check_lib rary_exists

2009-04-21 Thread Alexander Neundorf
On Tuesday 21 April 2009, Marcel Loose wrote: > 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_