diff options
-rw-r--r-- | lib/spack/spack/build_systems/cmake.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/spack/spack/build_systems/cmake.py b/lib/spack/spack/build_systems/cmake.py index a3a1bb51e3..bf431e139d 100644 --- a/lib/spack/spack/build_systems/cmake.py +++ b/lib/spack/spack/build_systems/cmake.py @@ -254,9 +254,9 @@ class CMakePackage(PackageBase): .. code-block:: python - [define_from_variant('BUILD_SHARED_LIBS', 'shared'), - define_from_variant('CMAKE_CXX_STANDARD', 'cxxstd'), - define_from_variant('SWR')] + [self.define_from_variant('BUILD_SHARED_LIBS', 'shared'), + self.define_from_variant('CMAKE_CXX_STANDARD', 'cxxstd'), + self.define_from_variant('SWR')] will generate the following configuration options: |