mirror of
https://github.com/reactos/CMake.git
synced 2024-11-28 05:50:42 +00:00
VS: Add placeholder CUDA flag tables
The CUDA Toolkit's VS integration defines abstractions for both options to `nvcc` and options to pass through `-Xcompiler` to the host MSVC. We need a separate flag table to parse each set of flags into the corresponding abstractions. Add empty placeholders for these tables.
This commit is contained in:
parent
13433b1357
commit
041ebda25b
@ -10,6 +10,8 @@
|
||||
#include "cmSourceFile.h"
|
||||
#include "cmVS10CLFlagTable.h"
|
||||
#include "cmVS10CSharpFlagTable.h"
|
||||
#include "cmVS10CudaFlagTable.h"
|
||||
#include "cmVS10CudaHostFlagTable.h"
|
||||
#include "cmVS10LibFlagTable.h"
|
||||
#include "cmVS10LinkFlagTable.h"
|
||||
#include "cmVS10MASMFlagTable.h"
|
||||
@ -122,6 +124,8 @@ cmGlobalVisualStudio10Generator::cmGlobalVisualStudio10Generator(
|
||||
this->DefaultCSharpFlagTable = cmVS10CSharpFlagTable;
|
||||
this->DefaultLibFlagTable = cmVS10LibFlagTable;
|
||||
this->DefaultLinkFlagTable = cmVS10LinkFlagTable;
|
||||
this->DefaultCudaFlagTable = cmVS10CudaFlagTable;
|
||||
this->DefaultCudaHostFlagTable = cmVS10CudaHostFlagTable;
|
||||
this->DefaultMasmFlagTable = cmVS10MASMFlagTable;
|
||||
this->DefaultNasmFlagTable = cmVS10NASMFlagTable;
|
||||
this->DefaultRcFlagTable = cmVS10RCFlagTable;
|
||||
@ -983,6 +987,17 @@ cmIDEFlagTable const* cmGlobalVisualStudio10Generator::GetLinkFlagTable() const
|
||||
return (table != CM_NULLPTR) ? table : this->DefaultLinkFlagTable;
|
||||
}
|
||||
|
||||
cmIDEFlagTable const* cmGlobalVisualStudio10Generator::GetCudaFlagTable() const
|
||||
{
|
||||
return this->DefaultCudaFlagTable;
|
||||
}
|
||||
|
||||
cmIDEFlagTable const* cmGlobalVisualStudio10Generator::GetCudaHostFlagTable()
|
||||
const
|
||||
{
|
||||
return this->DefaultCudaHostFlagTable;
|
||||
}
|
||||
|
||||
cmIDEFlagTable const* cmGlobalVisualStudio10Generator::GetMasmFlagTable() const
|
||||
{
|
||||
cmIDEFlagTable const* table = this->ToolsetOptions.GetMasmFlagTable(
|
||||
|
@ -100,6 +100,8 @@ public:
|
||||
cmIDEFlagTable const* GetRcFlagTable() const;
|
||||
cmIDEFlagTable const* GetLibFlagTable() const;
|
||||
cmIDEFlagTable const* GetLinkFlagTable() const;
|
||||
cmIDEFlagTable const* GetCudaFlagTable() const;
|
||||
cmIDEFlagTable const* GetCudaHostFlagTable() const;
|
||||
cmIDEFlagTable const* GetMasmFlagTable() const;
|
||||
cmIDEFlagTable const* GetNasmFlagTable() const;
|
||||
|
||||
@ -134,6 +136,8 @@ protected:
|
||||
cmIDEFlagTable const* DefaultCSharpFlagTable;
|
||||
cmIDEFlagTable const* DefaultLibFlagTable;
|
||||
cmIDEFlagTable const* DefaultLinkFlagTable;
|
||||
cmIDEFlagTable const* DefaultCudaFlagTable;
|
||||
cmIDEFlagTable const* DefaultCudaHostFlagTable;
|
||||
cmIDEFlagTable const* DefaultMasmFlagTable;
|
||||
cmIDEFlagTable const* DefaultNasmFlagTable;
|
||||
cmIDEFlagTable const* DefaultRcFlagTable;
|
||||
|
1
Source/cmVS10CudaFlagTable.h
Normal file
1
Source/cmVS10CudaFlagTable.h
Normal file
@ -0,0 +1 @@
|
||||
static cmVS7FlagTable cmVS10CudaFlagTable[] = { { 0, 0, 0, 0, 0 } };
|
1
Source/cmVS10CudaHostFlagTable.h
Normal file
1
Source/cmVS10CudaHostFlagTable.h
Normal file
@ -0,0 +1 @@
|
||||
static cmVS7FlagTable cmVS10CudaHostFlagTable[] = { { 0, 0, 0, 0, 0 } };
|
Loading…
Reference in New Issue
Block a user