forked from qt-creator/qt-creator
CMake: Keep more accurate information on build types
Do not map anything vaguely library-related into DynamicLibraryType. This will prevent creator from e.g. trying to deploy ObjectLibraries. Change-Id: I34a0d981d2a949f587e1804268cc66231aedd545 Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -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
|
||||
|
@@ -201,10 +201,10 @@ QList<CMakeBuildTarget> 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;
|
||||
|
Reference in New Issue
Block a user