[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: issue with config generation
From:       Anatoli Gorchetchnikov <anatoli () cns ! bu ! edu>
Date:       2012-06-16 15:25:00
Message-ID: 201206161125.00399.anatoli () cns ! bu ! edu
[Download RAW message or body]

On Saturday, June 16, 2012 11:12:05 Andreas Pakulat wrote:
> Hi,
> 
> Am Samstag, 16. Juni 2012 schrieb Anatoli Gorchetchnikov :
> > Hi all,
> > 
> > I am trying to follow
> > 
> > http://techbase.kde.org/Development/Tutorials/Using_KConfig_XT
> > 
> > tutorial. I got down to the Use and Dialogs section, and I am expacting
> > to see
> > generated .cpp and .h files in my build tree, but I don't. If I run
> > kconfig_compiler from command line it does generate the files; configure
> > command in KDeveloper ouputs that it finds kconfig_compiler, but somewhy
> > the build process does not engage it. I attach my CMakeLists.txt and
> > kcfg/kcfgc files just in case.
> > 
> > I can surely generate these by hand and live with it, but I rather do it
> > automagically... Feels like some minor detail that I have missed
> > somewhere...
> 
> Your problem is that there is no dependency set up so the kcfg files are
> turned into code. The reason for that is that no target uses the generated
> files, because the kcfg-command comes after the add_executable one. Cmake
> is not purely declarative, sometimes order of things does matter, this is
> such a case. The kde4_add_kcfg-command addsfiles to the SRCS-variable and
> these files need to end up inthe executable target.
> 
> Andreas

Thanks Andreas, I just realized too that it was the order of these two lines 
:)


Regards, 
Anatoli
-- 
Anatoli Gorchetchnikov, PhD
Research Assistant Professor
Neuromorphics Lab
Boston University
677 Beacon St
Boston, MA, 02215

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic