[CMake] Extended path for imported .proto files in the FindProtobuf module

Miroslav Kes mkes at ra.rockwell.com
Fri Apr 15 08:56:26 EDT 2011


Hi,

The current  implementation (as of 2.3.8)  of the FindProtobuf module 
implicitly assumes that the imported .proto files are located only in the 
${CMAKE_CURRENT_SOURCE_DIR}. This may not be true for more complex source 
directory structure.
 
The attached patch allows users to override the default by setting an 
external variable (PROTOBUF_IMPORT_DIRS) prior to the 
PROTOBUF_GENERATE_CPP call.
It also fixes the bug #0010997 which si still pending in the bug tracking 
system.



Regards

Mira
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110415/3d877522/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FindProtobuf_proto_import.patch
Type: application/octet-stream
Size: 2886 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110415/3d877522/attachment.obj>


More information about the CMake mailing list