summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/cmake/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/cmake/package.py')
-rw-r--r--var/spack/repos/builtin/packages/cmake/package.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/cmake/package.py b/var/spack/repos/builtin/packages/cmake/package.py
index da0f3c16b5..368c71965b 100644
--- a/var/spack/repos/builtin/packages/cmake/package.py
+++ b/var/spack/repos/builtin/packages/cmake/package.py
@@ -10,8 +10,6 @@ import sys
import spack.build_environment
from spack.package import *
-is_windows = sys.platform == "win32"
-
class Cmake(Package):
"""A cross-platform, open-source build system. CMake is a family of
@@ -187,7 +185,11 @@ class Cmake(Package):
default=False,
description="Enables the generation of html and man page documentation",
)
- variant("ncurses", default=not is_windows, description="Enables the build of the ncurses gui")
+ variant(
+ "ncurses",
+ default=sys.platform != "win32",
+ description="Enables the build of the ncurses gui",
+ )
# See https://gitlab.kitware.com/cmake/cmake/-/issues/21135
conflicts(