mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-21 22:50:26 -06:00
cmState: Move TargetType enum to separate namespace
This commit is contained in:
@@ -57,7 +57,7 @@ bool cmExportBuildFileGenerator::GenerateMainFile(std::ostream& os)
|
||||
this->LG->GetMakefile()->GetBacktrace());
|
||||
return false;
|
||||
}
|
||||
if (te->GetType() == cmState::INTERFACE_LIBRARY) {
|
||||
if (te->GetType() == cmStateEnums::INTERFACE_LIBRARY) {
|
||||
this->GenerateRequiredCMakeVersion(os, "3.0.0");
|
||||
}
|
||||
}
|
||||
@@ -134,12 +134,12 @@ void cmExportBuildFileGenerator::GenerateImportTargetsConfig(
|
||||
cmGeneratorTarget* target = *tei;
|
||||
ImportPropertyMap properties;
|
||||
|
||||
if (target->GetType() != cmState::INTERFACE_LIBRARY) {
|
||||
if (target->GetType() != cmStateEnums::INTERFACE_LIBRARY) {
|
||||
this->SetImportLocationProperty(config, suffix, target, properties);
|
||||
}
|
||||
if (!properties.empty()) {
|
||||
// Get the rest of the target details.
|
||||
if (target->GetType() != cmState::INTERFACE_LIBRARY) {
|
||||
if (target->GetType() != cmStateEnums::INTERFACE_LIBRARY) {
|
||||
this->SetImportDetailProperties(config, suffix, target, properties,
|
||||
missingTargets);
|
||||
this->SetImportLinkInterface(config, suffix,
|
||||
@@ -186,7 +186,7 @@ void cmExportBuildFileGenerator::SetImportLocationProperty(
|
||||
|
||||
// Add the import library for windows DLLs.
|
||||
if (target->IsDLLPlatform() &&
|
||||
(target->GetType() == cmState::SHARED_LIBRARY ||
|
||||
(target->GetType() == cmStateEnums::SHARED_LIBRARY ||
|
||||
target->IsExecutableWithExports()) &&
|
||||
mf->GetDefinition("CMAKE_IMPORT_LIBRARY_SUFFIX")) {
|
||||
std::string prop = "IMPORTED_IMPLIB";
|
||||
|
||||
Reference in New Issue
Block a user