summaryrefslogtreecommitdiffstats
path: root/Source/cmNinjaNormalTargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-05-17 13:25:56 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-05-17 13:26:05 (GMT)
commit3020354f7c86f959d707aed2b833692204dd7778 (patch)
tree79dc1ca02491338fe78001ffdd4c72ad26cac212 /Source/cmNinjaNormalTargetGenerator.cxx
parent736f9d184da2109b009078e3184e996883bd7554 (diff)
parent23e8364aedcbeb7ce606b6075c98827e52f0c7f6 (diff)
downloadCMake-3020354f7c86f959d707aed2b833692204dd7778.zip
CMake-3020354f7c86f959d707aed2b833692204dd7778.tar.gz
CMake-3020354f7c86f959d707aed2b833692204dd7778.tar.bz2
Merge topic 'string-cleanup'
23e8364aed Source: std::string related cleanup Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Sebastian Holtermann <sebholt@web.de> Merge-request: !3324
Diffstat (limited to 'Source/cmNinjaNormalTargetGenerator.cxx')
-rw-r--r--Source/cmNinjaNormalTargetGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmNinjaNormalTargetGenerator.cxx b/Source/cmNinjaNormalTargetGenerator.cxx
index 680f881..dd63a54 100644
--- a/Source/cmNinjaNormalTargetGenerator.cxx
+++ b/Source/cmNinjaNormalTargetGenerator.cxx
@@ -605,7 +605,7 @@ void cmNinjaNormalTargetGenerator::WriteDeviceLinkStatement()
// First and very important step is to make sure while inside this
// step our link language is set to CUDA
std::string cudaLinkLanguage = "CUDA";
- std::string const objExt =
+ std::string const& objExt =
this->Makefile->GetSafeDefinition("CMAKE_CUDA_OUTPUT_EXTENSION");
std::string const cfgName = this->GetConfigName();