Skip to content

Instantly share code, notes, and snippets.

@robertmaynard
Last active February 8, 2017 15:10
Show Gist options
  • Save robertmaynard/ff1406ccd4603c3b5e5465616e9cb9a7 to your computer and use it in GitHub Desktop.
Save robertmaynard/ff1406ccd4603c3b5e5465616e9cb9a7 to your computer and use it in GitHub Desktop.
non_standard_extension_msbuild_cuda
A .vcxproj file containing:
<CudaCompile Include="foo.notcu" />
results in a failure to build:
nvcc fatal: Don't know what to do with 'C:/path/to/foo.notcu'
because CudaCompile does not pass '-x cu' to nvcc.
While a non-standard extension is not common practice, it is something supported by build system generators like CMake
(which has a way to mark sources as a specific language regardless of their extension).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment