cmake: Create an optimized release build (#14414)
This commit is contained in:
parent
de93830b9a
commit
26ffbe3d21
@ -168,8 +168,15 @@ def bootstrap_args(self):
|
|||||||
args.append('--sphinx-html')
|
args.append('--sphinx-html')
|
||||||
args.append('--sphinx-man')
|
args.append('--sphinx-man')
|
||||||
|
|
||||||
if '+ownlibs' in spec:
|
# Now for CMake arguments to pass after the initial bootstrap
|
||||||
args.append('--')
|
args.append('--')
|
||||||
|
|
||||||
|
# Make sure to create an optimized release build
|
||||||
|
args.append('-DCMAKE_BUILD_TYPE=Release')
|
||||||
|
|
||||||
|
# When building our own private copy of curl then we need to properly
|
||||||
|
# enable / disable oepnssl
|
||||||
|
if '+ownlibs' in spec:
|
||||||
args.append('-DCMAKE_USE_OPENSSL=%s' % str('+openssl' in spec))
|
args.append('-DCMAKE_USE_OPENSSL=%s' % str('+openssl' in spec))
|
||||||
|
|
||||||
return args
|
return args
|
||||||
|
Loading…
Reference in New Issue
Block a user