<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi All,<br>
    <br>
    I am working on this platform:<br>
    <br>
    <ul>
      <li>Windows 10 64bit</li>
      <li>Visual Studio 2015 Community Edition</li>
      <li>Visual Studio 2017 Community Edition</li>
      <li>CUDA 8.0</li>
      <li>CMake 3.9</li>
    </ul>
    <p>I am in the middle of switching from VS2015 to VS2017, but CUDA
      projects fail to properly compile under VS2017 as the
      compiler/linker fail to find tools on the path setup by CMake. I
      believe this is bug/incompatibly of the CMake FindCUDA module with
      VS2017.</p>
    <p>To reproduce the problem I am attaching a tiny project</p>
    <ul>
      <li>main.cu is a minimal CUDA example from the web</li>
      <li>CMakeLists.txt is a CMake file that leads to a successful
        build under VS2015 and unsuccessful under VS2017 <br>
      </li>
      <li>Output VS2015 is the output from building the project under
        VS2015 (all targets built OK)</li>
      <li>Output VS2017 is the output from building the project under
        VS2015 (1 target OK one target fails)</li>
    </ul>
    <p>I have noticed also that oddly under VS2017 an "x64" and
      "main.dir" directories are created outside the build dir, and at
      the level of the source directory.</p>
    <p>I thought of reporting this to the list, and any help is welcome,</p>
    <p>Thank you and Best Regards,</p>
    <p>Andrea<br>
    </p>
  </body>
</html>