This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Cmake Problem !

Tags: None
(comma "," separated)
Adcock
Registered Member
Posts
6
Karma
0

Cmake Problem !

Wed Aug 09, 2017 6:55 pm
Hi,
I am using KDevelop & Cmake & MSVC 2010 Express on Microsoft Windows 10 OS . [ I mean I am trying to use ]

When I create a new project I have to select Standard->Terminal [ Which is C++ based ] [ Actually I want C ]
Then I create a new file "main.c" in my new project from within KDevelop .
But KDevelop doesn't automatically update CMakeLists.txt . [ I mean "main.c" is not automatically added to CMakeLists.txt ]
So when I try to Build that project it compiles "main.cpp" instead of "main.c" .
But if I manually edit CMakeLists.txt and replace "main.cpp" with "main.c" in that file Cmake works.
I mean If I try to build that project it succeeds .

So is there any way to make sure that KDevelop will automatically update CMakeLists.txt and reconfigure Cmake .
How can I achieve this ?
User avatar
kfunk
KDE Developer
Posts
53
Karma
0
OS

Re: Cmake Problem !

Wed Aug 09, 2017 8:17 pm
That's not implemented, no.

You'll have to maintain the CMakeLists.txt files yourself. The CMake language is too complex to be able to reliably modify these files automatically.


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]