I am doing in a project like this: https://github.com/hyperdeal/hyperdeal/blob/0d1529484306b034e442d79ab85ae7dbe8815e63/CMakeLists.txt#L61-L67. But I can imagine that there are better approaches.
PM On Thursday, 1 July 2021 at 11:26:58 UTC+2 Praveen C wrote: > Thanks a lot. That gives me the deal.II git version. > > Is there a way to put the git version of my application code also ? > > I suppose this has to be done to cmake stage I suppose. > > Thanks > praveen > > > On 01-Jul-2021, at 2:52 PM, 'peterrum' via deal.II User Group < > [email protected]> wrote: > > There are some macros: > https://www.dealii.org/developer/doxygen/deal.II/revision_8h.html#a6a61bbd5c9074273a721450df150d9f5. > > You can use it like this: > https://github.com/hyperdeal/hyperdeal/blob/60091feb59f98789bc082395150c7537f6b3dc07/examples/vlasov_poisson/vlasov_poisson.cc#L228-L231 > > Hope this helps, > PM > > > -- The deal.II project is located at http://www.dealii.org/ For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en --- You received this message because you are subscribed to the Google Groups "deal.II User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/6bf79124-b971-4f3a-8d92-5f4d04f06400n%40googlegroups.com.
