Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] [CMake] Invalidate CMakeCache


Can anyone suggest a good way to cause the CMake Cache to become invalidated so a full rebuild occurs?

The use case is where one or more variables, specified using -D<var>=<value>, have changed.

The manual way to do this is to delete the project's CMakeCache.txt file. But I'd like to programmatically cause this to happen

In  org.eclipse.cdt.cmake.core.internal.CMakeBuildConfiguration.deleteCMakeCache this variable appears to be exactly what I want, but there is only 1 API to set it and it uses some yaml feature that our integration is not using. Is there another way?

Cheers John Moule

Back to the top