<meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="font-family: monospace; font-size: 12px; white-space: pre; ">PROTOBUF_GENERATE_CPP does not seem to work at all in ubuntu. I was working with 2.8.3 and since it wasn't working I have compiled the latest cmake (2.8.6) but still no luck. I also tried with --debug-output but after finding protobuf no other related output.</span><div>
<span class="Apple-style-span" style="font-family: monospace; font-size: 12px; white-space: pre; "><br></span></div><div><span class="Apple-style-span" style="font-family: monospace; font-size: 12px; white-space: pre; ">Here's the relevant segment:</span></div>
<div><span class="Apple-style-span" style="font-family: monospace; font-size: 12px; white-space: pre; "><br></span></div><div><span class="Apple-style-span" style="font-family: monospace; font-size: 12px; white-space: pre; "><pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
<span style=" color:#808000;">FIND_PACKAGE</span>(Protobuf)</pre><pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#808000;">IF</span>(PROTOBUF_FOUND)</pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;"> </span><span style=" color:#808000;">INCLUDE_DIRECTORIES</span>(<span style=" color:#800000;">${PROTOBUF_INCLUDE_DIRS}</span>)</pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;"> </span><span style=" color:#808000;">INCLUDE_DIRECTORIES</span>(<span style=" color:#800000;">${CMAKE_CURRENT_BINARY_DIR}</span>)</pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;"> </span><span style=" color:#808000;">PROTOBUF_GENERATE_CPP</span>(PROTO_SRCS<span style=" color:#c0c0c0;"> </span>PROTO_HDRS<span style=" color:#c0c0c0;"> </span>data.proto)</pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#808000;">ENDIF</span>()</pre><pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
<br></pre><pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Yet the protoc compiler is never invoked and the <a href="http://data.pb.cc">data.pb.cc</a> and .h files are never created (even tried without the IF statement).</pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br></pre><pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
Any ideas?</pre><pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br></pre><pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
James</pre><pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br></pre></span></div>