mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 22:31:18 -05:00
Replace boolean implib parameters with enum
Named enumeration values are much clearer at call sites and add more type safety.
This commit is contained in:
@@ -200,9 +200,11 @@ void cmExportBuildFileGenerator::SetImportLocationProperty(
|
||||
prop += suffix;
|
||||
std::string value;
|
||||
if (target->IsAppBundleOnApple()) {
|
||||
value = target->GetFullPath(config, false);
|
||||
value =
|
||||
target->GetFullPath(config, cmStateEnums::RuntimeBinaryArtifact);
|
||||
} else {
|
||||
value = target->GetFullPath(config, false, true);
|
||||
value = target->GetFullPath(config,
|
||||
cmStateEnums::RuntimeBinaryArtifact, true);
|
||||
}
|
||||
properties[prop] = value;
|
||||
}
|
||||
@@ -212,7 +214,8 @@ void cmExportBuildFileGenerator::SetImportLocationProperty(
|
||||
mf->GetDefinition("CMAKE_IMPORT_LIBRARY_SUFFIX")) {
|
||||
std::string prop = "IMPORTED_IMPLIB";
|
||||
prop += suffix;
|
||||
std::string value = target->GetFullPath(config, true);
|
||||
std::string value =
|
||||
target->GetFullPath(config, cmStateEnums::ImportLibraryArtifact);
|
||||
target->GetImplibGNUtoMS(value, value, "${CMAKE_IMPORT_LIBRARY_SUFFIX}");
|
||||
properties[prop] = value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user