diff --git a/var/spack/repos/builtin/packages/kokkos/package.py b/var/spack/repos/builtin/packages/kokkos/package.py index f6f35046c6..f2107bd7b5 100644 --- a/var/spack/repos/builtin/packages/kokkos/package.py +++ b/var/spack/repos/builtin/packages/kokkos/package.py @@ -266,7 +266,7 @@ def cmake_args(self): options = [ from_variant("CMAKE_POSITION_INDEPENDENT_CODE", "pic"), - from_variant("Kokkos_CXX_STANDARD", "std"), + from_variant("CMAKE_CXX_STANDARD", "std"), from_variant("BUILD_SHARED_LIBS", "shared"), ]