[CMake] Find*.cmake variable naming

Andreas Schneider mail at cynapses.org
Tue Jan 15 05:40:46 EST 2008


Andreas Pakulat wrote:
> On 14.01.08 23:40:39, Andreas Schneider wrote:
>> Rodolfo Schulz de Lima wrote:
>>> Hi, I'd like to comment on the Find*.cmake variable naming procedure
>>> adopted by cmake. Right now I have to look at some Find*.cmake files to
>>> see what are the output variables they create. Some packages create a
>>> *_LIBRARY, others *_LIBRARIES, others *_INCLUDE_DIRS and others
>>> *_INCLUDE_DIR. The Modules/readme.txt procedure isn't being used for
>>> some packages.
>>>
>>> Also the vast majority creates upcased (is this an adjective?) variable
>>> names, BUT Boost and wxWidgets. There two define Boost_FOUND,
>>> Boost_LIBRARIES, wxWidgets_FOUND, wxWidgets_LIBRARIES. It should be
>>> better if they were BOOST_FOUND, WXWIDGETS_FOUND etc.
>> For much better FindBoost.cmake module take a look at
>>
>> http://cmake-modules.googlecode.com/svn/trunk/Modules/Boost/FindBoost.cmake
> 
> Cool, that looks like a good start. Did you already file a bugreport to
> replace cmake cvs FindBoost.cmake with this one? 

I had CVS access, but I lost my login information. Nobody from kitware
responds to my emails. So feel free to file a request.

> 
> One thing I just noticed though is that the PATH_SUFFIX is not used
> everywhere. 

It is only needed for the include directory or what do you mean?

> 
> Andreas
> 

	-- andreas

-- 
http://www.cynapses.org/ - cybernetic synapses


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : http://public.kitware.com/pipermail/cmake/attachments/20080115/a491295c/signature.pgp


More information about the CMake mailing list