make error on macOS
OS: macOS 10.12.6
XCode CLT: 8.2

I got a build fatal error when running the `make` on macOS.
Any idea how to build it on macOS?

Full compile log using your ubuntu build instruction:
```
$ cmake .. -DCMAKE_C_COMPILER=gcc-5 -DCMAKE_CXX_COMPILER=g++-5
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/local/bin/gcc-5
-- Check for working C compiler: /usr/local/bin/gcc-5 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Check for working CXX compiler: /usr/local/bin/g++-5
-- Check for working CXX compiler: /usr/local/bin/g++-5 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found UV: /usr/local/lib/libuv.dylib  
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE  
-- Found CUDA: /usr/local/cuda (found suitable version "8.0", minimum required is "7.5") 
-- Looking for syslog.h
-- Looking for syslog.h - found
-- Configuring done
-- Generating done
-- Build files have been written to: /Miner/xmrig-nvidia/build

$ make
Scanning dependencies of target jansson
[  2%] Building C object src/3rdparty/jansson/CMakeFiles/jansson.dir/dump.c.o
[  4%] Building C object src/3rdparty/jansson/CMakeFiles/jansson.dir/error.c.o
[  6%] Building C object src/3rdparty/jansson/CMakeFiles/jansson.dir/hashtable.c.o
[  8%] Building C object src/3rdparty/jansson/CMakeFiles/jansson.dir/hashtable_seed.c.o
[ 10%] Building C object src/3rdparty/jansson/CMakeFiles/jansson.dir/load.c.o
[ 12%] Building C object src/3rdparty/jansson/CMakeFiles/jansson.dir/memory.c.o
[ 14%] Building C object src/3rdparty/jansson/CMakeFiles/jansson.dir/pack_unpack.c.o
[ 16%] Building C object src/3rdparty/jansson/CMakeFiles/jansson.dir/strbuffer.c.o
[ 18%] Building C object src/3rdparty/jansson/CMakeFiles/jansson.dir/strconv.c.o
[ 20%] Building C object src/3rdparty/jansson/CMakeFiles/jansson.dir/utf.c.o
[ 22%] Building C object src/3rdparty/jansson/CMakeFiles/jansson.dir/value.c.o
[ 24%] Linking C static library libjansson.a
[ 24%] Built target jansson
[ 26%] Building NVCC (Device) object CMakeFiles/xmrig-cuda.dir/src/nvidia/xmrig-cuda_generated_cuda_extra.cu.o
nvcc fatal   : GNU C/C++ compiler is no longer supported as a host compiler on Mac OS X.
CMake Error at xmrig-cuda_generated_cuda_extra.cu.o.Release.cmake:222 (message):
  Error generating
  /Miner/xmrig-nvidia/build/CMakeFiles/xmrig-cuda.dir/src/nvidia/./xmrig-cuda_generated_cuda_extra.cu.o


make[2]: *** [CMakeFiles/xmrig-cuda.dir/src/nvidia/xmrig-cuda_generated_cuda_extra.cu.o] Error 1
make[1]: *** [CMakeFiles/xmrig-cuda.dir/all] Error 2
make: *** [all] Error 2
```

Tried to run `cmake` without any parameter:
```
$ cmake ..
-- The C compiler identification is AppleClang 8.0.0.8000042
-- The CXX compiler identification is AppleClang 8.0.0.8000042
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found UV: /usr/local/lib/libuv.dylib  
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE  
-- Found CUDA: /usr/local/cuda (found suitable version "8.0", minimum required is "7.5") 
-- Looking for syslog.h
-- Looking for syslog.h - found
-- Configuring done
-- Generating done
-- Build files have been written to: /Miner/xmrig-nvidia/build

$ make
Scanning dependencies of target jansson
[  2%] Building C object src/3rdparty/jansson/CMakeFiles/jansson.dir/dump.c.o
[  4%] Building C object src/3rdparty/jansson/CMakeFiles/jansson.dir/error.c.o
[  6%] Building C object src/3rdparty/jansson/CMakeFiles/jansson.dir/hashtable.c.o
[  8%] Building C object src/3rdparty/jansson/CMakeFiles/jansson.dir/hashtable_seed.c.o
[ 10%] Building C object src/3rdparty/jansson/CMakeFiles/jansson.dir/load.c.o
[ 12%] Building C object src/3rdparty/jansson/CMakeFiles/jansson.dir/memory.c.o
[ 14%] Building C object src/3rdparty/jansson/CMakeFiles/jansson.dir/pack_unpack.c.o
[ 16%] Building C object src/3rdparty/jansson/CMakeFiles/jansson.dir/strbuffer.c.o
[ 18%] Building C object src/3rdparty/jansson/CMakeFiles/jansson.dir/strconv.c.o
[ 20%] Building C object src/3rdparty/jansson/CMakeFiles/jansson.dir/utf.c.o
[ 22%] Building C object src/3rdparty/jansson/CMakeFiles/jansson.dir/value.c.o
[ 24%] Linking C static library libjansson.a
[ 24%] Built target jansson
[ 26%] Building NVCC (Device) object CMakeFiles/xmrig-cuda.dir/src/nvidia/xmrig-cuda_generated_cuda_extra.cu.o
clang: warning: argument unused during compilation: '-s'
clang: warning: argument unused during compilation: '-s'
clang: warning: argument unused during compilation: '-s'
clang: warning: argument unused during compilation: '-s'
clang: warning: argument unused during compilation: '-s'
clang: warning: argument unused during compilation: '-s'
/usr/local/cuda/include/host_defines.h(230): error: expected a ";"

/usr/local/cuda/include/host_defines.h(231): error: expected a ";"

/usr/local/cuda/include/host_defines.h(232): error: expected a ";"

/usr/local/cuda/include/host_defines.h(233): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cstddef(97): error: identifier "nullptr" is undefined

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cstddef(97): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(234): error: expected a declaration

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(234): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(244): error: expected a declaration

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(244): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(255): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(259): error: member "std::__1::integral_constant<_Tp, __v>::constexpr" is not a type name

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(259): error: return type may not be specified on a conversion function

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(259): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(267): error: "constexpr" is not a function or static data member

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(295): error: expected a declaration

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(295): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(303): error: expected a declaration

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(303): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(311): error: expected a declaration

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(311): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(325): error: identifier "nullptr_t" is undefined

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(344): error: identifier "char16_t" is undefined

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(345): error: identifier "char32_t" is undefined

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(345): error: class "std::__1::__libcpp_is_integral<<error-type>>" has already been defined

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(552): error: identifier "nullptr_t" is undefined

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(581): error: expected a declaration

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(581): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(598): error: expected a declaration

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(598): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(607): error: expected a declaration

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(607): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(619): error: expected a declaration

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(619): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(632): error: expected a declaration

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(632): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(644): error: expected a declaration

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(644): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(653): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(695): error: expected a declaration

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(695): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(704): error: expected a declaration

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(704): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(769): error: expected a declaration

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(769): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(782): error: expected a declaration

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(782): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(807): error: expected a declaration

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(807): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1160): error: expected a type specifier

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1160): error: expected a type specifier

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1170): error: expected a declaration

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1170): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1183): error: expected an identifier

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1183): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1184): error: expected an identifier

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1184): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1185): error: expected an identifier

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1185): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1186): error: expected an identifier

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1186): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1187): error: expected an identifier

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1187): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1188): error: expected an identifier

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1188): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1189): error: expected an identifier

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1189): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1190): error: expected an identifier

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1190): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1191): error: expected an identifier

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1191): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1192): error: expected an identifier

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1192): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1193): error: expected an identifier

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1193): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1194): error: expected an identifier

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1194): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1195): error: expected an identifier

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1195): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1196): error: expected an identifier

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1196): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1199): error: expected an identifier

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1199): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1235): error: expected a declaration

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1235): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1255): error: function template "std::__1::declval" is not a type name

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1255): error: function returning function is not allowed

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1255): error: "__test" has already been declared in the current scope

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1255): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1256): error: identifier "type" is undefined

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1285): error: expected a ")"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1285): error: function returning function is not allowed

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1285): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1296): error: expected a ")"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1296): error: function returning function is not allowed

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1296): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1448): error: expected a declaration

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1448): error: expected a ";"

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1481): error: expected a declaration

/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits(1481): error: expected a ";"

Error limit reached.
100 errors detected in the compilation of "/var/folders/yl/418vjq2d36g7fy3pj7kb2ns80000gn/T//tmpxft_00006a3f_00000000-13_cuda_extra.compute_60.cpp1.ii".
Compilation terminated.
CMake Error at xmrig-cuda_generated_cuda_extra.cu.o.Release.cmake:282 (message):
  Error generating file
  /Miner/xmrig-nvidia/build/CMakeFiles/xmrig-cuda.dir/src/nvidia/./xmrig-cuda_generated_cuda_extra.cu.o


make[2]: *** [CMakeFiles/xmrig-cuda.dir/src/nvidia/xmrig-cuda_generated_cuda_extra.cu.o] Error 1
make[1]: *** [CMakeFiles/xmrig-cuda.dir/all] Error 2
make: *** [all] Error 2
```