Error when install from source on Ubuntu 16.04

Ubuntu 16.04
Python 3.5
Cuda 10.0

I was trying to install from source, but it shows errors when build from the shared library using cuda build with make -j4

nvcc fatal : Unknown option ‘Wno-deprecated-declarations’
CMake Error at (message):
Error generating

Any suggestions? Thanks!

Did you perform the instructions below?

mkdir build
cd build
cmake -DUSE_CUDA=ON ..
make -j4

Yes, but after make -j4 there is error.

You may not clone all the submodules.
Need to add --recursive flag to clone everything needed,
i.e. git clone --recursive