mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-03 05:08:47 -06:00
cmGeneratorTarget::GetExportMacro: return const std::string*
This commit is contained in:
committed by
Brad King
parent
f77a9576e5
commit
b8bb6ba653
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user