On Mon, Mar 2, 2009 at 9:59 AM, Adolfo RodrÃguez <[email protected]> wrote:
> Hi all, > > After reading the recently added wiki > doc<http://www.cmake.org/Wiki/CMake:Improving_Find*_Modules>about improving > CMake Find* modules, I have a style question. In the section > that discusses finding packages in unusual locations, it is suggested that > "Each module should have an environment variable that is looked at first... > Once the module finds the package based on the environment variable, a CMake > cache variable of the same name should be created". Is there a naming > convention for this environment variable?. I was thinking that > <PackageName>_ROOT would be a good idea, since it would go along nicely with > existing CMake variables such as BOOST_ROOT. > > I'm currently overhauling a bunch of custom-made Find* packages, and would > like to adhere as much as possible to the existing naming conventions. There is a <PackageName>_ROOT_DIR in the official readme.txt although usage is somewhat split, many modules use <PackageName>_ROOT including CMake itself. See the Modules/readme.txt file for other variables: http://public.kitware.com/cgi-bin/viewcvs.cgi/Modules/readme.txt?root=CMake&view=markup -- Philip Lowman
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
