[CMake] Find*.cmake variable naming

Andreas Pakulat apaku at gmx.de
Tue Jan 15 04:58:51 EST 2008


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? 

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

Andreas

-- 
Chess tonight.


More information about the CMake mailing list