[CMake] Find*.cmake variable naming

Andreas Schneider mail at cynapses.org
Mon Jan 14 17:40:39 EST 2008


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

	-- 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/20080114/38d2ddd7/signature.pgp


More information about the CMake mailing list