trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: December 2013

Re: [trinity-devel] How to insert a cmake variable into a *.desktop file

From: Slávek Banko <slavek.banko@...>
Date: Sun, 22 Dec 2013 10:55:27 +0100
On Sunday 22 of December 2013 06:40:42 Fat-Zer wrote:
> 2013/11/8 Darrell Anderson <darrella@...>
>
> > All,
> >
> > I want to create a patch that modifies two *.desktop files during
> > compile time. What is the correct syntax to use for the cmake
> > variable in the *.desktop files?
> >
> > For example:
> >
> > Exec=%CMAKE_VARIABLE%
> >
> > Thanks. :-)
> >
> > Darrell
>
> Is it still actual?
> Anyway... for future generations... the syntax is:
>
> Exec=@CMAKE_VARIABLE@
>
> The desktop file is supposed to have ".cmake" extension.
> In CMakeLists.txt use configure_file() statement.
>
> You can use e.g. tdebase/kdesktop/kdesktop.desktop.cmake as an example...

I think it is not. The question was intended for bug 853, which is already 
fixed in commit 7d6186b5. Precisely in this way that you describe.

Slavek
--