Building on a system without CUDA

How do I build on a system without CUDA?

[fk6d@fk6d build]$ cmake -DCMAKE_CXX_COMPILER=mpicxx -DCMAKE_CUDA_COMPILER=mpicxx -DCMAKE_CXX_FLAGS=-g ../
-- The CXX compiler identification is GNU 8.1.1
-- The CUDA compiler identification is unknown
-- Check for working CXX compiler: /usr/lib64/openmpi/bin/mpicxx
-- Check for working CXX compiler: /usr/lib64/openmpi/bin/mpicxx -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working CUDA compiler: /usr/lib64/openmpi/bin/mpicxx
-- Check for working CUDA compiler: /usr/lib64/openmpi/bin/mpicxx -- broken
CMake Error at /usr/share/cmake/Modules/CMakeTestCUDACompiler.cmake:46 (message):
  The CUDA compiler

    "/usr/lib64/openmpi/bin/mpicxx"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /home/fk6d/code/FK6D/build/CMakeFiles/CMakeTmp
    
    Run Build Command:"/usr/bin/gmake" "cmTC_22761/fast"
    /usr/bin/gmake -f CMakeFiles/cmTC_22761.dir/build.make CMakeFiles/cmTC_22761.dir/build
    gmake[1]: Entering directory '/home/fk6d/code/FK6D/build/CMakeFiles/CMakeTmp'
    Building CUDA object CMakeFiles/cmTC_22761.dir/main.cu.o
    /usr/lib64/openmpi/bin/mpicxx     -x cu -c /home/fk6d/code/FK6D/build/CMakeFiles/CMakeTmp/main.cu -o CMakeFiles/cmTC_22761.dir/main.cu.o
    g++: error: language cu not recognized
    g++: error: language cu not recognized
    gmake[1]: *** [CMakeFiles/cmTC_22761.dir/build.make:66: CMakeFiles/cmTC_22761.dir/main.cu.o] Error 1
    gmake[1]: Leaving directory '/home/fk6d/code/FK6D/build/CMakeFiles/CMakeTmp'
    gmake: *** [Makefile:126: cmTC_22761/fast] Error 2
    

  

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:10 (project)


-- Configuring incomplete, errors occurred!
See also "/home/fk6d/code/FK6D/build/CMakeFiles/CMakeOutput.log".
See also "/home/fk6d/code/FK6D/build/CMakeFiles/CMakeError.log".