kde4/cmake equivalent to KDE_NO_COMPILE?

Allen Winter winter at kde.org
Tue Oct 23 15:03:16 BST 2007


On Tuesday 23 October 2007 09:40:05 am Rex Dieter wrote:
> Silly question, in the big, brave, new kde4/cmake world, is there a new
> equivalent to kde3's KDE_NO_COMPILE (to skip compiling/building certain
> modules)?

Hi Rex,

I think you asking how to disable the build of a subdirectory within a kdefoo module.

The easiest way is to run cmake with the -DBUILD_foo=OFF command line option.
I just documented this at
http://techbase.kde.org/Development/Tutorials/CMake#Command_Line_Variables

This method assumes the toplevel module CMakeLists.txt file uses the 
macro_optional_add_subdirectory(foo) macro.  Instead, if it uses
the more vanilla add_subdirectory(foo) macro then you'll need
to comment that line out of the CMakeLists.txt file.

All this info was told to me by Pino :)

-Allen





More information about the kde-core-devel mailing list