[cmake-developers] [CMake 0014515]: Add variable PROTOBUF_ROOT to FindProtobuf.cmake

Mantis Bug Tracker mantis at public.kitware.com
Mon Oct 28 05:20:06 EDT 2013


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=14515 
====================================================================== 
Reported By:                icando
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14515
Category:                   CMake
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2013-10-28 05:20 EDT
Last Modified:              2013-10-28 05:20 EDT
====================================================================== 
Summary:                    Add variable PROTOBUF_ROOT to FindProtobuf.cmake
Description: 
FindProtobuf.cmake doesn't allow specifying non-standard install location for
protobuf.  It would be nice to add a variable PROTOBUF_ROOT that tells
FindProtobuf.cmake to look into the directory.

My current workaround is to use CMAKE_FIND_ROOT_PATH.  I need to first backup
CMAKE_FIND_ROOT_PATH, set it to PROTOBUF_ROOT (I passed it in throught
-DPROTOBUF_ROOT=xxxx), call find_package, then restore it.  This is ugly and it
would be cleaner to let FindProtobuf.cmake handle the variable (by adding it to
HINTS when using find_library).

Thanks.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2013-10-28 05:20 icando         New Issue                                    
======================================================================




More information about the cmake-developers mailing list