summaryrefslogtreecommitdiffstats
path: root/Source/cmVS10CudaFlagTable.h
blob: d8c27d757c2dba5c4d6f73c16d76724a10580b51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
static cmVS7FlagTable cmVS10CudaFlagTable[] = {
  // Collect options meant for the host compiler.
  { "AdditionalCompilerOptions", "Xcompiler=", "Host compiler options", "",
    cmVS7FlagTable::UserValue | cmVS7FlagTable::SpaceAppendable },
  { "AdditionalCompilerOptions", "Xcompiler", "Host compiler options", "",
    cmVS7FlagTable::UserFollowing | cmVS7FlagTable::SpaceAppendable },

  // Select the CUDA runtime library.
  { "CudaRuntime", "cudart=none", "No CUDA runtime library", "None", 0 },
  { "CudaRuntime", "cudart=shared", "Shared/dynamic CUDA runtime library",
    "Shared", 0 },
  { "CudaRuntime", "cudart=static", "Static CUDA runtime library", "Static",
    0 },
  { "CudaRuntime", "cudart", "CUDA runtime library", "",
    cmVS7FlagTable::UserFollowing },

  // Capture arch/code arguments into temporaries for post-processing.
  { "cmake-temp-gencode", "gencode=", "", "",
    cmVS7FlagTable::UserValue | cmVS7FlagTable::SemicolonAppendable },
  { "cmake-temp-gencode", "gencode", "", "",
    cmVS7FlagTable::UserFollowing | cmVS7FlagTable::SemicolonAppendable },
  { "cmake-temp-gencode", "-generate-code=", "", "",
    cmVS7FlagTable::UserValue | cmVS7FlagTable::SemicolonAppendable },
  { "cmake-temp-gencode", "-generate-code", "", "",
    cmVS7FlagTable::UserFollowing | cmVS7FlagTable::SemicolonAppendable },

  { "cmake-temp-code", "code=", "", "", cmVS7FlagTable::UserValue },
  { "cmake-temp-code", "code", "", "", cmVS7FlagTable::UserFollowing },
  { "cmake-temp-code", "-gpu-code=", "", "", cmVS7FlagTable::UserValue },
  { "cmake-temp-code", "-gpu-code", "", "", cmVS7FlagTable::UserFollowing },

  { "cmake-temp-arch", "arch=", "", "", cmVS7FlagTable::UserValue },
  { "cmake-temp-arch", "arch", "", "", cmVS7FlagTable::UserFollowing },
  { "cmake-temp-arch", "-gpu-architecture=", "", "",
    cmVS7FlagTable::UserValue },
  { "cmake-temp-arch", "-gpu-architecture", "", "",
    cmVS7FlagTable::UserFollowing },

  { 0, 0, 0, 0, 0 }
};