Last active
February 8, 2017 15:10
-
-
Save robertmaynard/ff1406ccd4603c3b5e5465616e9cb9a7 to your computer and use it in GitHub Desktop.
non_standard_extension_msbuild_cuda
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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