Re: Trying to understand kdevelop's CMake library

Igor Kushnir <[email protected]> Tue, 7 Mar 2023 19:28:37 +0200
Newsgroups gmane.comp.kde.devel.kdevelop
Message-ID <[email protected]>
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