def __configure(self):
        """Setup build options based on user parameters"""

        if self.__build_examples is False:
            self.__cmake_opts.append('-DNVSHMEM_BUILD_EXAMPLES=OFF')

        if self.__build_packages is False:
            self.__cmake_opts.append('-DNVSHMEM_BUILD_PACKAGES=OFF')
            self.__cmake_opts.append('-DNVSHMEM_BUILD_DEB_PACKAGES=OFF')
            self.__cmake_opts.append('-DNVSHMEM_BUILD_RPM_PACKAGES=OFF')

        if self.__cuda:
            self.__cmake_opts.append('-DCUDA_HOME={}'.format(self.__cuda))

        if self.__gdrcopy:
            self.__cmake_opts.append('-DGDRCOPY_HOME={}'.format(self.__gdrcopy))

        if self.__mpi:
            self.__cmake_opts.append('-DNVSHMEM_MPI_SUPPORT=1')
            self.__cmake_opts.append('-DMPI_HOME={}'.format(self.__mpi))
        #else:
        #    self.__cmake_opts.append('-DNVSHMEM_MPI_SUPPORT=0')

        if self.__shmem:
            self.__cmake_opts.append('-DNVSHMEM_SHMEM_SUPPORT=1')
            self.__cmake_opts.append('-DSHMEM_HOME={}'.format(self.__shmem))
Setup build options based on user parameters
hpccm/building_blocks/nvshmem.py