mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 06:59:01 -06:00
CUDA: Add abstraction for cuda runtime selection
Fixes #17559 Replace our hard-coded default of cudart=static with a first-class abstraction to select the runtime library from an enumeration of logical names.
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#include "cmIDEOptions.h"
|
||||
|
||||
class cmLocalVisualStudioGenerator;
|
||||
class cmGeneratorTarget;
|
||||
|
||||
using cmVS7FlagTable = cmIDEFlagTable;
|
||||
|
||||
@@ -61,15 +62,8 @@ public:
|
||||
bool UsingUnicode() const;
|
||||
bool UsingSBCS() const;
|
||||
|
||||
enum CudaRuntime
|
||||
{
|
||||
CudaRuntimeStatic,
|
||||
CudaRuntimeShared,
|
||||
CudaRuntimeNone
|
||||
};
|
||||
CudaRuntime GetCudaRuntime() const;
|
||||
|
||||
void FixCudaCodeGeneration();
|
||||
void FixCudaRuntime(cmGeneratorTarget* target);
|
||||
|
||||
void FixManifestUACFlags();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user