Hi,<br><br>FindCUDA.cmake sets CUDA_HOST_COMPILER to CMAKE_C_COMPILER.  I think that the CUDA_HOST_COMPILER variable was introduced in cmake 2.8.10.  The issue is that on macosx, CMAKE_C_COMPILER defaults to /usr/bin/cc which is clang, and clang is not a supported cuda compiler.  One workaround is to set CUDA_HOST_COMPILER to /usr/bin/gcc on macosx.<br>

<br>Here is the nvidia documentation that states the requirement &quot;The <dfn class="term">gcc</dfn> compiler and toolchain installed using Xcode
                        &quot;<br><br><a href="http://docs.nvidia.com/cuda/cuda-getting-started-guide-for-mac-os-x/">http://docs.nvidia.com/cuda/cuda-getting-started-guide-for-mac-os-x/</a><br><br><br>This bug related to CUDA_HOST_COMPILER shows up on the issue trackers of a few different projects, for example:<br>

<br><a href="http://code.opencv.org/issues/2504">http://code.opencv.org/issues/2504</a><br><a href="http://dev.pointclouds.org/issues/979">http://dev.pointclouds.org/issues/979</a><br><br><br>I made a commit for pcl that demonstrates a possible workaround, but I&#39;m interested to have some insight from the cmake community regarding what the best workaround might be.<br>

<br><a href="https://github.com/patmarion/pcl-1/commit/29a12df7a6218fb3ebdee01c086b21d31d457519">https://github.com/patmarion/pcl-1/commit/29a12df7a6218fb3ebdee01c086b21d31d457519</a><br><br><br>Thanks!<br>Pat<br>