diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2020-01-30 16:29:43 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-30 16:29:43 -0500 |
| commit | ec056fd30c8b7357568e57cf9d52fc159b56602f (patch) | |
| tree | 07201552562235398bf7c7e77a5cdbeec666b77b | |
| parent | 5942ff81d9a63ee1e37ba81172ea579646be774e (diff) | |
Fix x86 compilation with CUDA enabled. (#1193)
| -rw-r--r-- | premake5.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/premake5.lua b/premake5.lua index 4de256321..f783173bc 100644 --- a/premake5.lua +++ b/premake5.lua @@ -552,13 +552,14 @@ toolSharedLibrary "render-test" includedirs { cudaPath .. "/include" } includedirs { cudaPath .. "/include", cudaPath .. "/common/inc" } + links { "cuda", "cudart" } + filter { "platforms:x86" } libdirs { cudaPath .. "/lib/Win32/" } filter { "platforms:x64" } libdirs { cudaPath .. "/lib/x64/" } - links { "cuda", "cudart" } end -- |
