About CMake support [was KDevelop 4.3]

Kishore kitts.mailinglists at gmail.com
Mon Nov 28 19:10:10 UTC 2011


On Monday 28 Nov 2011 7:34:13 PM Andreas Pakulat wrote:
> On 28.11.11 21:18:24, Kishore wrote:
> > On Monday 28 Nov 2011 3:08:38 PM Andreas Pakulat wrote:
> > > On 28.11.11 19:08:27, Kishore wrote:
> > > > On Tuesday 22 Nov 2011 12:55:59 AM Milian Wolff wrote:
> > > > > On Monday 21 November 2011 21:58:15 David Nolden wrote:
> > > > > > I think it's becoming time, we already have some nice
> > > > > > new
> > > > > > features
> > > > > > together.
> > > > > > 
> > > > > > The current version of KDevelop doesn't seem too stable
> > > > > > though.
> > > > > > I
> > > > > > especially have lots of problems with the cmake support
> > > > > > recently, and
> > > > > > the "multiple toolviews" feature causes quite a few very
> > > > > > frequently
> > > > > > visible UI regressions.
> > > > > 
> > > > > Please report such bugs, I'm only aware of one UI regression
> > > > > when
> > > > > switching areas nothing else. Same for CMake, it's rock
> > > > > solid for
> > > > > me.
> > > > 
> > > > On the topic of cmake support i have a strange problem. In my
> > > > project, i have a like
> > > > 
> > > > EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND}
> > > > -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -D<some special options>
> > > > ${PROJECT_SOURCE_DIR}>
> > > > 
> > > >     WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/build
> > > > 
> > > > )
> > > > 
> > > > Basically, i am building the same project again in a subdir with
> > > > some
> > > > other special flags. What is strange is that soon as i open the
> > > > project is kdevelop it seems to execute the same above command
> > > > in the "~/Documents" folder (or kdevelop's current working
> > > > directory) and I get all the "CMakeFiles" and other cmake
> > > > generated files and directories.
> > > > 
> > > > Does anyone have any explanation for this behavior?
> > > 
> > > In master? If so, file a bugreport, master supports the
> > > WORKING_DIRECTORY flag in execute_process (or at least it should),
> > > so
> > > definitely a bug.
> > 
> > Sorry, i should have mentioned that I am using 4.2.3 kubuntu oneiric
> > packages. Should I still file a bug is this resolved in master?
> 
> I don't know wether your particular case is fixed in master or not. I
> can only say that master and 4.2 have code to take care of the working
> directory, maybe the working-dir value in your specific case is not
> resolving to a valid filesystem path. So if you file a bugreport make
> sure to attach a simple cmakelists.txt exposing the problem so that a
> developer can easily reproduce and debug the problem.

Attached are two files that demonstrate the issue. Steps to reproduce the 
issue:
1) Copy the two attached files to an empty directory
2) From a terminal in that directory, execute "kdevelop -p kdevtest.kdev4"

Soon as kdevelop launches, you should see a bunch of CMake build files 
(including a Makefile) in the above directory.

I'll file a bug tomorrow unless someone confirms that it is now resolved.
-- 
Cheers!
Kishore
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CMakeLists.txt
Type: text/x-cmake
Size: 215 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20111129/9361b5c0/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdevtest.kdev4
Type: text/x-kdevelop
Size: 49 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20111129/9361b5c0/attachment-0001.bin>


More information about the KDevelop-devel mailing list