diff --git a/src/plugins/cmakeprojectmanager/cmakebuildtarget.h b/src/plugins/cmakeprojectmanager/cmakebuildtarget.h index e46394bef56..d64bd2b9edd 100644 --- a/src/plugins/cmakeprojectmanager/cmakebuildtarget.h +++ b/src/plugins/cmakeprojectmanager/cmakebuildtarget.h @@ -36,10 +36,11 @@ namespace CMakeProjectManager { enum TargetType { - ExecutableType = 0, - StaticLibraryType = 2, - DynamicLibraryType = 3, - UtilityType = 64 + ExecutableType, + StaticLibraryType, + DynamicLibraryType, + ObjectLibraryType, + UtilityType }; class CMAKE_EXPORT CMakeBuildTarget diff --git a/src/plugins/cmakeprojectmanager/servermodereader.cpp b/src/plugins/cmakeprojectmanager/servermodereader.cpp index f5a96dc77f2..7dd06ef0eab 100644 --- a/src/plugins/cmakeprojectmanager/servermodereader.cpp +++ b/src/plugins/cmakeprojectmanager/servermodereader.cpp @@ -201,10 +201,10 @@ QList ServerModeReader::takeBuildTargets(QString &errorMessage type = ExecutableType; else if (t->type == "STATIC_LIBRARY") type = StaticLibraryType; - else if (t->type == "MODULE_LIBRARY" - || t->type == "SHARED_LIBRARY" - || t->type == "INTERFACE_LIBRARY" - || t->type == "OBJECT_LIBRARY") + else if (t->type == "OBJECT_LIBRARY") + type = ObjectLibraryType; + else if (t->type == "MODULE_LIBRARY" || t->type == "SHARED_LIBRARY" + || t->type == "INTERFACE_LIBRARY") type = DynamicLibraryType; else type = UtilityType;