New cmake tarball needed

William A. Hoffman billlist at nycap.rr.com
Mon Mar 27 16:12:25 CEST 2006


At 09:05 AM 3/27/2006, David Faure wrote:
>On Monday 27 March 2006 15:59, William A. Hoffman wrote:
>> Perhaps we should wait a bit to collect up a few more issues before making a new tar ball.  
>Makes sense.
>
>> We could say in-source builds are currently broken.  In fact, I see almost 
>> no point in using them at all.  In many of our projects we just do not allow them.
>> We put a check in the cmake files that issues an error if one is attempted.
>I would like to do the same (at least for now) in kdelibs. How do I do that?

Something like this:

project(kdelibs)
#########################################################################
# Disallow in-source build
STRING(COMPARE EQUAL "${kdelibs_SOURCE_DIR}" 
  "${kdelibs_BINARY_DIR}" INSOURCE)
IF(INSOURCE)
  MESSAGE(FATAL_ERROR "kdelibs requires an out of source Build. Please create a separate binary directory and run CMake there.")
ENDIF(INSOURCE)

-Bill



More information about the Kde-buildsystem mailing list