From d69b09937f7687ac508e1e2990c8e04f61d9779e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B6k=C3=A7en=20Eraslan?= Date: Sun, 26 Oct 2008 17:55:25 +0000 Subject: [PATCH] Now, default build type for CMake is 'release'. Difference between the build type release and RelWithDebInfo (this is the build type when you do not specify any parameter about the build type): - There is no -g flag in build type 'release' - There are additional flags like -DNDEBUG and -DQT_NO_DEBUG If CMAKE_BUILD_TYPE is specified as a parameter to the configure method, since the last build type is accepted by CMake, it will be used as a build type. --- pisi/actionsapi/cmaketools.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pisi/actionsapi/cmaketools.py b/pisi/actionsapi/cmaketools.py index 8fcc4a4f..ba1a2c93 100644 --- a/pisi/actionsapi/cmaketools.py +++ b/pisi/actionsapi/cmaketools.py @@ -59,7 +59,8 @@ def configure(parameters = '', installPrefix = '/%s' % get.defaultprefixDIR(), s args = 'cmake -DCMAKE_INSTALL_PREFIX=%s \ -DCMAKE_C_FLAGS="%s" \ -DCMAKE_CXX_FLAGS="%s" \ - -DCMAKE_LD_FLAGS="%s" %s %s' % (installPrefix, get.CFLAGS(), get.CXXFLAGS(), get.LDFLAGS(), parameters, sourceDir) + -DCMAKE_LD_FLAGS="%s" \ + -DCMAKE_BUILD_TYPE=release %s %s' % (installPrefix, get.CFLAGS(), get.CXXFLAGS(), get.LDFLAGS(), parameters, sourceDir) if system(args): raise ConfigureError(_('Configure failed.'))