diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2018-10-14 23:00:34 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-10-16 15:12:19 (GMT) |
commit | b8bb6ba653df9d53d93824bb7185bf022e9bf2ef (patch) | |
tree | 4073db484bda9d8b6b55ee419237664b5a5fccf7 /Source/cmVisualStudio10TargetGenerator.cxx | |
parent | f77a9576e542f7f0b2d32096a65fd232a1fd089e (diff) | |
download | CMake-b8bb6ba653df9d53d93824bb7185bf022e9bf2ef.zip CMake-b8bb6ba653df9d53d93824bb7185bf022e9bf2ef.tar.gz CMake-b8bb6ba653df9d53d93824bb7185bf022e9bf2ef.tar.bz2 |
cmGeneratorTarget::GetExportMacro: return const std::string*
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r-- | Source/cmVisualStudio10TargetGenerator.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index 2d39cbb..44ec899 100644 --- a/Source/cmVisualStudio10TargetGenerator.cxx +++ b/Source/cmVisualStudio10TargetGenerator.cxx @@ -2580,8 +2580,9 @@ bool cmVisualStudio10TargetGenerator::ComputeClOptions( configDefine += configName; configDefine += "\""; clOptions.AddDefine(configDefine); - if (const char* exportMacro = this->GeneratorTarget->GetExportMacro()) { - clOptions.AddDefine(exportMacro); + if (const std::string* exportMacro = + this->GeneratorTarget->GetExportMacro()) { + clOptions.AddDefine(*exportMacro); } if (this->MSTools) { @@ -2877,8 +2878,9 @@ bool cmVisualStudio10TargetGenerator::ComputeCudaOptions( configDefine += configName; configDefine += "\""; cudaOptions.AddDefine(configDefine); - if (const char* exportMacro = this->GeneratorTarget->GetExportMacro()) { - cudaOptions.AddDefine(exportMacro); + if (const std::string* exportMacro = + this->GeneratorTarget->GetExportMacro()) { + cudaOptions.AddDefine(*exportMacro); } // Get includes for this target |