summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2017-08-04 14:53:05 -0500
committerGitHub <noreply@github.com>2017-08-04 14:53:05 -0500
commitb8ed61cfea58c8cab5c86d6c0189512605890444 (patch)
treec4f25ba40452848ba7a58aec0fe320642277d687
parent9be294de315e094b15865aad1a78e6433731f385 (diff)
downloadspack-b8ed61cfea58c8cab5c86d6c0189512605890444.tar.gz
spack-b8ed61cfea58c8cab5c86d6c0189512605890444.tar.bz2
spack-b8ed61cfea58c8cab5c86d6c0189512605890444.tar.xz
spack-b8ed61cfea58c8cab5c86d6c0189512605890444.zip
Make CMake the default build system (#4862)
-rw-r--r--lib/spack/spack/cmd/create.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/spack/spack/cmd/create.py b/lib/spack/spack/cmd/create.py
index 239f75b996..d8507d1108 100644
--- a/lib/spack/spack/cmd/create.py
+++ b/lib/spack/spack/cmd/create.py
@@ -438,11 +438,13 @@ class BuildSystemGuesser:
# A list of clues that give us an idea of the build system a package
# uses. If the regular expression matches a file contained in the
# archive, the corresponding build system is assumed.
+ # NOTE: Order is important here. If a package supports multiple
+ # build systems, we choose the first match in this list.
clues = [
+ (r'/CMakeLists\.txt$', 'cmake'),
(r'/configure$', 'autotools'),
(r'/configure\.(in|ac)$', 'autoreconf'),
(r'/Makefile\.am$', 'autoreconf'),
- (r'/CMakeLists\.txt$', 'cmake'),
(r'/SConstruct$', 'scons'),
(r'/waf$', 'waf'),
(r'/setup\.py$', 'python'),