ADD_DEFINITIONS and kdevelop
apaku at gmx.de
Mon May 10 07:23:14 BST 2010
On 09.05.10 22:44:57, Esben Mose Hansen wrote:
> On Sunday 09 May 2010 21:26:28 Andreas Pakulat wrote:
> > Look at cmakeprojectvisitor.cpp, in particular line 587 and following.
> > The reason is simply that we don't set the _DIR variable, though we do
> > read it from the cache. Seems like this was missed during the
> > implementation of the Config-Mode support. As I'm suffering from a cold
> > right now and don't have a build at hand, I'll leave it to you to add a
> > cache.set() call and submit a merge-request.
> Hm. Apparently, the config-section only gets called if NO_MODULE is
> specifically added to the find_module() command. Even then, it doesn't pick up
> the CMAKE_INSTALL_PREFIX, nor KDevPlatform_DIR, so it appears to be unable to
> find the KDevPlatformConfig.cmake file. Or at least, it appeared to me like
> that, but it is getting too late for me I think. I will try next time the
> family permits.
Well, FindKDevPlatform.cmake calls find_package with NO_MODULE
explicitly, so that should work. I'll try to have a look at the code
once I'm feeling better again.
Today is the first day of the rest of your life.
More information about the KDevelop