summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorTarget.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-09-18 18:44:29 (GMT)
committerBrad King <brad.king@kitware.com>2023-09-21 19:34:28 (GMT)
commitb32ea7cff050574c00b5207035762e3b24f8a405 (patch)
treeb55ce9368ae46e552c3ca01dc3b4b601cc16e852 /Source/cmGeneratorTarget.h
parentb3a1f175677016d4314793f91e255f384c320ec7 (diff)
downloadCMake-b32ea7cff050574c00b5207035762e3b24f8a405.zip
CMake-b32ea7cff050574c00b5207035762e3b24f8a405.tar.gz
CMake-b32ea7cff050574c00b5207035762e3b24f8a405.tar.bz2
CUDA: Factor out helper to generate CUDA architecture flags
Prepare to use it for other languages.
Diffstat (limited to 'Source/cmGeneratorTarget.h')
-rw-r--r--Source/cmGeneratorTarget.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmGeneratorTarget.h b/Source/cmGeneratorTarget.h
index 7673bef..6a385ea 100644
--- a/Source/cmGeneratorTarget.h
+++ b/Source/cmGeneratorTarget.h
@@ -496,8 +496,12 @@ public:
cmSourceFile const& sf) const;
void AddCUDAArchitectureFlags(cmBuildStep compileOrLink,
- const std::string& config,
+ std::string const& config,
std::string& flags) const;
+ void AddCUDAArchitectureFlagsImpl(cmBuildStep compileOrLink,
+ std::string const& config,
+ std::string const& lang, std::string arch,
+ std::string& flags) const;
void AddCUDAToolkitFlags(std::string& flags) const;
void AddHIPArchitectureFlags(std::string& flags) const;