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.
This commit is contained in:
Gökçen Eraslan
2008-10-26 17:55:25 +00:00
parent 58d591c4b8
commit d69b09937f
+2 -1
View File
@@ -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.'))