[cmake-developers] [CMake 0014849]: Need a way to disable CMake package registry

Mantis Bug Tracker mantis at public.kitware.com
Fri Mar 28 12:34:14 EDT 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=14849 
====================================================================== 
Reported By:                Dmitry Marakasov
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14849
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-03-28 12:34 EDT
Last Modified:              2014-03-28 12:34 EDT
====================================================================== 
Summary:                    Need a way to disable CMake package registry
Description: 
As I understand, EXPORT(PACKAGE) command is used to make projects easily access
specific project's build directory. That, however, gets in a way of systemwide
package installation handling.

For example, FreeBSD ports tree: we have a port of software which has
EXPORT(PACKAGE). The first problem: it touches directory outside build tree on
build phase (creating a file under /root/.cmake/packages), which ports are not
allowed and it considered a fatal error. Next, this file points to build
directory, which is temporary and will be removed after build, thus cmake
package file will point to nonexisting directory. Last, it won't be accessible
for other users since it's in root's home anyway.

EXPORT(PACKAGE) can be patched away from software's CMakeLists, but patching is
least desirable. It would be nice to have a way to disable using package
registry, as it's useless in packaging environement anyway.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-03-28 12:34 Dmitry MarakasovNew Issue                                    
======================================================================



More information about the cmake-developers mailing list