Trying to understand kdevelop's CMake library

Igor Kushnir igorkuo at gmail.com
Tue Mar 7 17:28:37 GMT 2023


On 2023-03-07 19:20, TarcĂ­sio Fischer wrote:
> Hey all.
> 
> Im trying to understand your code that handles cmake in the plugins/cmake/ 
> subdir. Does anyone have an historical overview on how this was done, and how is 
> it maintained?

Hi Tarcisio,

KDevelop uses https://cmake.org/cmake/help/latest/manual/cmake-file-api.7.html 
if CMake version is >= 3.14 (see kdevelop/plugins/cmake/cmakefileapi.*). There 
are several older implementations, which are used for older CMake versions. If 
you don't care much about older CMake versions, simply using the file API is 
probably the most reasonable option.

Cheers,
Igor


More information about the KDevelop-devel mailing list