diff options
author | Chuck Atkins <chuck.atkins@kitware.com> | 2020-01-08 13:17:53 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-08 13:17:53 -0500 |
commit | 26ffbe3d216cca82838915d56033b3b132f35b52 (patch) | |
tree | fc1d764bc7d64537ca77b20e3db470d6f2b39be3 /var | |
parent | de93830b9aa8360b8e7bc550a56a5da8559e6f26 (diff) | |
download | spack-26ffbe3d216cca82838915d56033b3b132f35b52.tar.gz spack-26ffbe3d216cca82838915d56033b3b132f35b52.tar.bz2 spack-26ffbe3d216cca82838915d56033b3b132f35b52.tar.xz spack-26ffbe3d216cca82838915d56033b3b132f35b52.zip |
cmake: Create an optimized release build (#14414)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/cmake/package.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/cmake/package.py b/var/spack/repos/builtin/packages/cmake/package.py index d99cda2f8c..f2fa2290fb 100644 --- a/var/spack/repos/builtin/packages/cmake/package.py +++ b/var/spack/repos/builtin/packages/cmake/package.py @@ -168,8 +168,15 @@ class Cmake(Package): args.append('--sphinx-html') args.append('--sphinx-man') + # Now for CMake arguments to pass after the initial bootstrap + 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('--') args.append('-DCMAKE_USE_OPENSSL=%s' % str('+openssl' in spec)) return args |