Try better handling CMAKE_BUILD_TYPE if xcode (supports multi-configurations, unlike Unix Makefiles)
This commit is contained in:
@@ -418,15 +418,17 @@ class DarwinSetup(UnixSetup):
|
|||||||
word_size=self.word_size,
|
word_size=self.word_size,
|
||||||
unattended=self.unattended,
|
unattended=self.unattended,
|
||||||
project_name=self.project_name,
|
project_name=self.project_name,
|
||||||
universal=self.universal,
|
universal='',
|
||||||
type=self.build_type.upper(),
|
type='',
|
||||||
)
|
)
|
||||||
|
if(self.generator != 'Xcode'):
|
||||||
|
args['type'] = '-DCMAKE_BUILD_TYPE=%s' % self.build_type.upper()
|
||||||
if self.universal == 'ON':
|
if self.universal == 'ON':
|
||||||
args['universal'] = '-DCMAKE_OSX_ARCHITECTURES:STRING=\'i386;ppc\''
|
args['universal'] = '-DCMAKE_OSX_ARCHITECTURES:STRING=\'i386;ppc\''
|
||||||
#if simple:
|
#if simple:
|
||||||
# return 'cmake %(opts)s %(dir)r' % args
|
# return 'cmake %(opts)s %(dir)r' % args
|
||||||
return ('cmake -G %(generator)r '
|
return ('cmake -G %(generator)r '
|
||||||
'-DCMAKE_BUILD_TYPE:STRING=%(type)s '
|
'%(type) '
|
||||||
'-DSTANDALONE:BOOL=%(standalone)s '
|
'-DSTANDALONE:BOOL=%(standalone)s '
|
||||||
'-DUNATTENDED:BOOL=%(unattended)s '
|
'-DUNATTENDED:BOOL=%(unattended)s '
|
||||||
'-DWORD_SIZE:STRING=%(word_size)s '
|
'-DWORD_SIZE:STRING=%(word_size)s '
|
||||||
|
|||||||
Reference in New Issue
Block a user