<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 25, 2013 at 8:18 PM, Karl Rupp <span dir="ltr"><<a href="mailto:rupp@mcs.anl.gov" target="_blank">rupp@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":z4">It is possible, but you cannot specify nvcc as CMAKE_CXX_COMPILER, but instead the script is doing some magic hackery replacing the C++-compiler with nvcc if the file extension is .cu.<br>
<br>
(I consider this to be a hack rather than a clean solution, but that's the status quo)</div></blockquote></div><br>Yeah, we've discussed this a few times before. FindCUDA.cmake is a total hack and it always looked to me like trying to use it would cause other conflicts, but perhaps not.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra" style>CMake's stupid design does not let you add proper languages from cmake-script, and since very few community members write C++ for CMake, it's not surprising that it was hacked up in cmake-script. Now that the hack exists, Kitware is using it as an excuse to not bother doing it right.</div>
</div>