Re: Preference for finding a kde module

2008-10-02 Thread Brad King
Alexander Neundorf wrote:
 On Thursday 02 October 2008, Andreas Pakulat wrote:
 On 01.10.08 18:18:07, Brad King wrote:
 ...
 Ok, then I guess I'll opt for the config-mode of FindFoo.cmake, unless
 Alex comes up with a compelling reason not to do that (like bugs in CMake
 2.6.0)...
 
 When having a small FindFoo.cmake wee can add additional output, better error 
 messages in case it hasn't been found, maybe support for special environment 
 variables, etc. So it enables us to tweak it a bit.

Yes.  In this case, the small FindFoo would consist of a call like

  find_package(Foo NO_MODULE)

which would proceed in config-mode instead of loading the same module
again.  This call could be surrounded by more configuration options and
messages, but these are not critical.  If an application wants the nicer
find interface it can have a copy of FindFoo (or get one from an
already-found dependency).  Otherwise at least finding will work without it.

-Brad
___
Kde-buildsystem mailing list
Kde-buildsystem@kde.org
https://mail.kde.org/mailman/listinfo/kde-buildsystem


Compile on Release Mode

2008-10-02 Thread Augusto Leite
Hi,

I am trying to compile KDE from sources, but cmake installs it on 
DebugFull mode. I am to install it on Release mode.

I changed the script (from kde.org) and used:

cmake $srcFolder -DCMAKE_INSTALL_PREFIX=$KDEDIR -DCMAKE_BUILD_TYPE=Release

But it still installs on DebugFull mode. What can it be? Did I do 
something wrong?

Thanks in Advance!

Augusto Leite


__
Faça ligações para outros computadores com o novo Yahoo! Messenger 
http://br.beta.messenger.yahoo.com/ 
___
Kde-buildsystem mailing list
Kde-buildsystem@kde.org
https://mail.kde.org/mailman/listinfo/kde-buildsystem


Re: Compile on Release Mode

2008-10-02 Thread Andreas Pakulat
On 02.10.08 17:40:52, Augusto Leite wrote:
 Hi,
 
 I am trying to compile KDE from sources, but cmake installs it on 
 DebugFull mode. I am to install it on Release mode.
 
 I changed the script (from kde.org) and used:
 
 cmake $srcFolder -DCMAKE_INSTALL_PREFIX=$KDEDIR -DCMAKE_BUILD_TYPE=Release
 
 But it still installs on DebugFull mode. What can it be? Did I do 
 something wrong?

man cmake says to specify the cmake options before the source path. So I
suggest to try that. It works quite fine here.

Oh and make sure to erase CMakeCache.txt before trying again, as the build
type might be cached.

Andreas

-- 
You have had a long-term stimulation relative to business.
___
Kde-buildsystem mailing list
Kde-buildsystem@kde.org
https://mail.kde.org/mailman/listinfo/kde-buildsystem


Re: Compile on Release Mode

2008-10-02 Thread Alexander Neundorf
On Thursday 02 October 2008, Augusto Leite wrote:
 Hi,

 I am trying to compile KDE from sources, but cmake installs it on
 DebugFull mode. I am to install it on Release mode.

 I changed the script (from kde.org) and used:

 cmake $srcFolder -DCMAKE_INSTALL_PREFIX=$KDEDIR
 -DCMAKE_BUILD_TYPE=Release

 But it still installs on DebugFull mode. What can it be? Did I do
 something wrong?

If you do this on an already existing buildtree, the -D won't change the 
entry in the cache.
So you have to change it in the cache or create a new buildtree. I would 
strongly recommend creating separate buildtrees for the different build types 
you want.
So you can have
kdelibs/
kdelibs-build-release/
kdelibs-build-debug/

etc.

Alex

___
Kde-buildsystem mailing list
Kde-buildsystem@kde.org
https://mail.kde.org/mailman/listinfo/kde-buildsystem


Re: Compile on Release Mode

2008-10-02 Thread Allen Winter
On Thursday 02 October 2008 16:40:52 Augusto Leite wrote:
 Hi,
 
 I am trying to compile KDE from sources, but cmake installs it on 
 DebugFull mode. I am to install it on Release mode.
 
 I changed the script (from kde.org) and used:
 
 cmake $srcFolder -DCMAKE_INSTALL_PREFIX=$KDEDIR -DCMAKE_BUILD_TYPE=Release
 
 But it still installs on DebugFull mode. What can it be? Did I do 
 something wrong?
 
FYI:  Last I knew, building in Release Mode was not supported.
So you are likely to find quite a few problems.
___
Kde-buildsystem mailing list
Kde-buildsystem@kde.org
https://mail.kde.org/mailman/listinfo/kde-buildsystem


Re: Compile on Release Mode

2008-10-02 Thread David Faure
On Friday 03 October 2008, Allen Winter wrote:
 On Thursday 02 October 2008 16:40:52 Augusto Leite wrote:
  Hi,
  
  I am trying to compile KDE from sources, but cmake installs it on 
  DebugFull mode. I am to install it on Release mode.
  
  I changed the script (from kde.org) and used:
  
  cmake $srcFolder -DCMAKE_INSTALL_PREFIX=$KDEDIR -DCMAKE_BUILD_TYPE=Release
  
  But it still installs on DebugFull mode. What can it be? Did I do 
  something wrong?
  
 FYI:  Last I knew, building in Release Mode was not supported.

Really !?!?! You mean that all the distributors making KDE packages use debug 
mode then?
That surprises me.

-- 
David Faure, [EMAIL PROTECTED], sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
___
Kde-buildsystem mailing list
Kde-buildsystem@kde.org
https://mail.kde.org/mailman/listinfo/kde-buildsystem


Re: Preference for finding a kde module

2008-10-02 Thread Allen Winter
On Thursday 02 October 2008 19:10:34 Alexander Neundorf wrote:
 On Friday 03 October 2008, Allen Winter wrote:
  On Tuesday 30 September 2008 20:52:09 Andreas Pakulat wrote:
   Hi,
  
   recently I've been browsing a bit through the cmake manual of cmake 2.6
   and also having looked at automoc4 buildsystem a bit. I'm wondering now
   wether its preferred to have FooConfig.cmake installed by a kde module or
   a FindFoo.cmake? Or maybe both, where the latter tries to find the former
   in a couple of well known places?
  
   Does either of the two approaches make it easier for somebody to find a
   module that has been installed in a custom location?
 
  Trying to understand.  Do I have this right?
 
  So this is sorta like the pkgconfig stuff currently in style with the Unix
  world??
 
 Yes, kind of.
 
  CMake built packages would install FooConfig.cmake config modules
  in, for example /usr/local/lib/cmake.
 
 Basically yes, but not in that directory.
 
  CMake packages that need Foo would have a FooFind.cmake discovery module,
 
 Do you mean FindFoo.cmake or FooConfig.cmake ?
 
sorry, FindFoo.cmake
For example, if kdepimlibs needs libical, then it would have a FindLibical.cmake
discovery module that tries to use the settings from LibicalConfig.cmake.

and it's just a matter of the libical package installing LibicalConfig.cmake
in an easy-to-guess location.




___
Kde-buildsystem mailing list
Kde-buildsystem@kde.org
https://mail.kde.org/mailman/listinfo/kde-buildsystem