]> rtime.felk.cvut.cz Git - hercules2020/kcf.git/commit
Do not force CUDA_HOST_COMPILER to g++
authorMichal Sojka <michal.sojka@cvut.cz>
Sat, 8 Sep 2018 09:12:03 +0000 (11:12 +0200)
committerMichal Sojka <michal.sojka@cvut.cz>
Mon, 10 Sep 2018 14:52:24 +0000 (16:52 +0200)
commit64986c06baf54c3720bac1d461de8ef7afef7edd
treeebc1af2d521cdfd1534e8f0f80a95382fe9dc7bf
parent9e4e614741e6c4386cd7e17c03d81658cf66ec73
Do not force CUDA_HOST_COMPILER to g++

cmake sets CUDA_HOST_COMPILER automatically based on CC environment
variable. If one uses custom CC variable and CUDA_HOST_COMPILER is set
this way, build usually fails. This happens, for example, when one
needs to use an older compiler (e.g. gcc-5), because the newer default
compiler is not supported by CUDA.

This fixes #10.
src/CMakeLists.txt