def __cmake(self):
        """Set CMake options based on user input"""

        # Set options
        if self.__arch:
            for arch in self.__arch:
                self.__cmake_opts.append('-DKokkos_ARCH_{}=ON'.format(
                    arch.upper()))

        if self.__check:
            self.__cmake_opts.append('-DKokkos_ENABLE_TESTS=ON')

        if self.__cuda:
            self.__cmake_opts.append('-DKokkos_ENABLE_CUDA=ON')
            self.__cmake_opts.append(
                '-DCMAKE_CXX_COMPILER=$(pwd)/../bin/nvcc_wrapper')
        if self.__hwloc:
            self.__cmake_opts.append('-DKokkos_ENABLE_HWLOC=ON')
Set CMake options based on user input
hpccm/building_blocks/kokkos.py