Bug 134875 - cmake based project does not compile main.cpp
Summary: cmake based project does not compile main.cpp
Status: RESOLVED WORKSFORME
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: 3.3.4
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-29 23:29 UTC by Matthias Pospiech
Modified: 2007-01-31 17:38 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Pospiech 2006-09-29 23:29:14 UTC
Version:           3.3.4 (using KDE 3.5.4 "release 71.1" , openSUSE )
Compiler:          Target: i586-suse-linux
OS:                Linux (i686) release 2.6.16.21-0.21-default

I created a cmake based project and opened the main.cpp from that directory. A compilation of the project or the main.cpp file fails:

make of project:
cd '/home/matthias/CPP/test2' && gmake -k -j1 
/usr/bin/cmake -H/home/matthias/CPP/test2 -B/home/matthias/CPP/test2 --check-build-system CMakeFiles/Makefile.cmake 0
gmake -f CMakeFiles/Makefile2 all
gmake[1]: Für das Ziel »all« ist nichts zu tun.

make of main.cpp
cd '/home/matthias/CPP/test2' && gmake -k -j1 'main.o'
gmake: *** Keine Regel, um »main.o« zu erstellen.

Is there a way to use cmake nevertheless ?

Matthias
Comment 1 Andreas Pakulat 2007-01-31 17:38:43 UTC
Apart from the fact that a project created via one of the cmake templates needs to be closed and reopened before it will work (which isn't quite nice, but can't be changed), building and executing it works fine. Closing.