Registered Member
|
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 ? |
KDE Developer
|
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. |
Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]