[CMake] protobuf and imports relative to root (and --proto_path)

David Jobet david.jobet at free.fr
Mon Oct 1 12:57:49 EDT 2018


Tx Alexander.

Unfortunately, the version of cmake that we use (2.6.0) does not have a --dependency_out arg.
So I just coded a small python parser that recursively check for imports and create a ninja depfile out of it. (injected with DEPFILE in custom command)
It looks like it works fine thanks !

David

Le 25 septembre 2018 21:15:54 GMT+01:00, Alexander Neundorf <neundorf at kde.org> a écrit :
>On 2018 M09 25, Tue 16:53:27 CEST David Jobet wrote:
>> > What I do have a problem is rerunning protoc automatically on
>proto-files
>> > which import proto files that have been modified.
>> > How do you handle this ?
>> 
>> I just found out I don't.
>> Any idea on that one ?
>
>here are some suggestions:
>https://cmake.org/pipermail/cmake-developers/2018-May/030664.html
>
>Alex
>
>-- 
>
>Powered by www.kitware.com
>
>Please keep messages on-topic and check the CMake FAQ at:
>http://www.cmake.org/Wiki/CMake_FAQ
>
>Kitware offers various services to support the CMake community. For
>more information on each offering, please visit:
>
>CMake Support: http://cmake.org/cmake/help/support.html
>CMake Consulting: http://cmake.org/cmake/help/consulting.html
>CMake Training Courses: http://cmake.org/cmake/help/training.html
>
>Visit other Kitware open-source projects at
>http://www.kitware.com/opensource/opensource.html
>
>Follow this link to subscribe/unsubscribe:
>https://cmake.org/mailman/listinfo/cmake

-- 
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20181001/721b4d49/attachment.html>


More information about the CMake mailing list