summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalVisualStudio7Generator.cxx
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2021-09-21 15:12:35 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2021-09-21 15:14:04 (GMT)
commitcc56dc7468bfee49dedbf395d6fca5c372d200fe (patch)
treec4463a4dcdada55ca57cba3713fea88d8d2f3f57 /Source/cmLocalVisualStudio7Generator.cxx
parent62834c07603e82aafabc082bbbcf74179a4cda27 (diff)
downloadCMake-cc56dc7468bfee49dedbf395d6fca5c372d200fe.zip
CMake-cc56dc7468bfee49dedbf395d6fca5c372d200fe.tar.gz
CMake-cc56dc7468bfee49dedbf395d6fca5c372d200fe.tar.bz2
Rename cmProp in cmValue
Diffstat (limited to 'Source/cmLocalVisualStudio7Generator.cxx')
-rw-r--r--Source/cmLocalVisualStudio7Generator.cxx42
1 files changed, 21 insertions, 21 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx
index 7b5fed6..9ad5f56 100644
--- a/Source/cmLocalVisualStudio7Generator.cxx
+++ b/Source/cmLocalVisualStudio7Generator.cxx
@@ -69,7 +69,7 @@ void cmLocalVisualStudio7Generator::AddHelperCommands()
if (!l->IsInBuildSystem()) {
continue;
}
- cmProp path = l->GetProperty("EXTERNAL_MSPROJECT");
+ cmValue path = l->GetProperty("EXTERNAL_MSPROJECT");
if (path) {
this->ReadAndStoreExternalGUID(l->GetName(), path->c_str());
}
@@ -582,7 +582,7 @@ void cmLocalVisualStudio7Generator::WriteConfiguration(
const std::string& libName, cmGeneratorTarget* target)
{
std::string mfcFlag;
- if (cmProp p = this->Makefile->GetDefinition("CMAKE_MFC_FLAG")) {
+ if (cmValue p = this->Makefile->GetDefinition("CMAKE_MFC_FLAG")) {
mfcFlag = cmGeneratorExpression::Evaluate(*p, this, configName);
} else {
mfcFlag = "0";
@@ -781,7 +781,7 @@ void cmLocalVisualStudio7Generator::WriteConfiguration(
fout << "\t\t\t<Tool\n"
<< "\t\t\t\tName=\"" << tool << "\"\n";
if (this->FortranProject) {
- cmProp target_mod_dir = target->GetProperty("Fortran_MODULE_DIRECTORY");
+ cmValue target_mod_dir = target->GetProperty("Fortran_MODULE_DIRECTORY");
std::string modDir;
if (target_mod_dir) {
modDir = this->MaybeRelativeToCurBinDir(*target_mod_dir);
@@ -938,7 +938,7 @@ void cmLocalVisualStudio7Generator::OutputBuildTool(
" " + GetBuildTypeLinkerFlags("CMAKE_MODULE_LINKER_FLAGS", configName);
}
- cmProp targetLinkFlags = target->GetProperty("LINK_FLAGS");
+ cmValue targetLinkFlags = target->GetProperty("LINK_FLAGS");
if (targetLinkFlags) {
extraLinkOptions += " ";
extraLinkOptions += *targetLinkFlags;
@@ -1077,7 +1077,7 @@ void cmLocalVisualStudio7Generator::OutputBuildTool(
}
}
std::string stackVar = cmStrCat("CMAKE_", linkLanguage, "_STACK_SIZE");
- cmProp stackVal = this->Makefile->GetDefinition(stackVar);
+ cmValue stackVal = this->Makefile->GetDefinition(stackVar);
if (stackVal) {
fout << "\t\t\t\tStackReserveSize=\"" << *stackVal << "\"\n";
}
@@ -1168,7 +1168,7 @@ void cmLocalVisualStudio7Generator::OutputBuildTool(
<< "\"\n";
}
std::string stackVar = cmStrCat("CMAKE_", linkLanguage, "_STACK_SIZE");
- cmProp stackVal = this->Makefile->GetDefinition(stackVar);
+ cmValue stackVal = this->Makefile->GetDefinition(stackVar);
if (stackVal) {
fout << "\t\t\t\tStackReserveSize=\"" << *stackVal << "\"";
}
@@ -1209,8 +1209,8 @@ void cmLocalVisualStudio7Generator::OutputDeploymentDebuggerTool(
std::ostream& fout, std::string const& config, cmGeneratorTarget* target)
{
if (this->WindowsCEProject) {
- cmProp dir = target->GetProperty("DEPLOYMENT_REMOTE_DIRECTORY");
- cmProp additionalFiles =
+ cmValue dir = target->GetProperty("DEPLOYMENT_REMOTE_DIRECTORY");
+ cmValue additionalFiles =
target->GetProperty("DEPLOYMENT_ADDITIONAL_FILES");
if (!dir && !additionalFiles) {
@@ -1447,12 +1447,12 @@ cmLocalVisualStudio7GeneratorFCInfo::cmLocalVisualStudio7GeneratorFCInfo(
needfc = true;
}
const std::string COMPILE_FLAGS("COMPILE_FLAGS");
- if (cmProp cflags = sf.GetProperty(COMPILE_FLAGS)) {
+ if (cmValue cflags = sf.GetProperty(COMPILE_FLAGS)) {
fc.CompileFlags = genexInterpreter.Evaluate(*cflags, COMPILE_FLAGS);
needfc = true;
}
const std::string COMPILE_OPTIONS("COMPILE_OPTIONS");
- if (cmProp coptions = sf.GetProperty(COMPILE_OPTIONS)) {
+ if (cmValue coptions = sf.GetProperty(COMPILE_OPTIONS)) {
lg->AppendCompileOptions(
fc.CompileFlags,
genexInterpreter.Evaluate(*coptions, COMPILE_OPTIONS));
@@ -1504,25 +1504,25 @@ cmLocalVisualStudio7GeneratorFCInfo::cmLocalVisualStudio7GeneratorFCInfo(
}
}
const std::string COMPILE_DEFINITIONS("COMPILE_DEFINITIONS");
- if (cmProp cdefs = sf.GetProperty(COMPILE_DEFINITIONS)) {
+ if (cmValue cdefs = sf.GetProperty(COMPILE_DEFINITIONS)) {
fc.CompileDefs = genexInterpreter.Evaluate(*cdefs, COMPILE_DEFINITIONS);
needfc = true;
}
std::string defPropName = cmStrCat("COMPILE_DEFINITIONS_", configUpper);
- if (cmProp ccdefs = sf.GetProperty(defPropName)) {
+ if (cmValue ccdefs = sf.GetProperty(defPropName)) {
fc.CompileDefsConfig =
genexInterpreter.Evaluate(*ccdefs, COMPILE_DEFINITIONS);
needfc = true;
}
const std::string INCLUDE_DIRECTORIES("INCLUDE_DIRECTORIES");
- if (cmProp cincs = sf.GetProperty(INCLUDE_DIRECTORIES)) {
+ if (cmValue cincs = sf.GetProperty(INCLUDE_DIRECTORIES)) {
fc.IncludeDirs = genexInterpreter.Evaluate(*cincs, INCLUDE_DIRECTORIES);
needfc = true;
}
// Check for extra object-file dependencies.
- if (cmProp deps = sf.GetProperty("OBJECT_DEPENDS")) {
+ if (cmValue deps = sf.GetProperty("OBJECT_DEPENDS")) {
std::vector<std::string> depends = cmExpandedList(*deps);
const char* sep = "";
for (const std::string& d : depends) {
@@ -1897,9 +1897,9 @@ void cmLocalVisualStudio7Generator::WriteProjectSCC(std::ostream& fout,
{
// if we have all the required Source code control tags
// then add that to the project
- cmProp vsProjectname = target->GetProperty("VS_SCC_PROJECTNAME");
- cmProp vsLocalpath = target->GetProperty("VS_SCC_LOCALPATH");
- cmProp vsProvider = target->GetProperty("VS_SCC_PROVIDER");
+ cmValue vsProjectname = target->GetProperty("VS_SCC_PROJECTNAME");
+ cmValue vsLocalpath = target->GetProperty("VS_SCC_LOCALPATH");
+ cmValue vsProvider = target->GetProperty("VS_SCC_PROVIDER");
if (vsProvider && vsLocalpath && vsProjectname) {
/* clang-format off */
@@ -1908,7 +1908,7 @@ void cmLocalVisualStudio7Generator::WriteProjectSCC(std::ostream& fout,
<< "\tSccProvider=\"" << *vsProvider << "\"\n";
/* clang-format on */
- cmProp vsAuxPath = target->GetProperty("VS_SCC_AUXPATH");
+ cmValue vsAuxPath = target->GetProperty("VS_SCC_AUXPATH");
if (vsAuxPath) {
fout << "\tSccAuxPath=\"" << *vsAuxPath << "\"\n";
}
@@ -1928,7 +1928,7 @@ void cmLocalVisualStudio7Generator::WriteProjectStartFortran(
<< "\tProjectCreator=\"Intel Fortran\"\n"
<< "\tVersion=\"" << gg->GetIntelProjectVersion() << "\"\n";
/* clang-format on */
- cmProp p = target->GetProperty("VS_KEYWORD");
+ cmValue p = target->GetProperty("VS_KEYWORD");
const char* keyword = p ? p->c_str() : "Console Application";
const char* projectType = 0;
switch (target->GetType()) {
@@ -1990,14 +1990,14 @@ void cmLocalVisualStudio7Generator::WriteProjectStart(
<< "\tProjectType=\"Visual C++\"\n";
/* clang-format on */
fout << "\tVersion=\"" << (gg->GetVersion() / 10) << ".00\"\n";
- cmProp p = target->GetProperty("PROJECT_LABEL");
+ cmValue p = target->GetProperty("PROJECT_LABEL");
const std::string projLabel = p ? *p : libName;
p = target->GetProperty("VS_KEYWORD");
const std::string keyword = p ? *p : "Win32Proj";
fout << "\tName=\"" << projLabel << "\"\n";
fout << "\tProjectGUID=\"{" << gg->GetGUID(libName) << "}\"\n";
this->WriteProjectSCC(fout, target);
- if (cmProp targetFrameworkVersion =
+ if (cmValue targetFrameworkVersion =
target->GetProperty("VS_DOTNET_TARGET_FRAMEWORK_VERSION")) {
fout << "\tTargetFrameworkVersion=\"" << *targetFrameworkVersion << "\"\n";
}