diff options
author | Eike Ziller <eike.ziller@qt.io> | 2021-03-05 12:28:41 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2021-03-05 12:29:57 +0000 |
commit | 30da5aafd7469494ae397703a64113b079ee66aa (patch) | |
tree | 58686aae93d28db9a1b6fc3a6207b205ac39ff1c /cmake/QtCreatorAPI.cmake | |
parent | 69afdcd290d12427fb529cbee4259c96daa12aa6 (diff) | |
download | qt-creator-30da5aafd7469494ae397703a64113b079ee66aa.tar.gz |
CMake build/Qt6: Automatically disable build of profilers
Tracing library does not build with Qt 6. Disable that automatically
and also the plugins that depend on it. Add some feature info for
the Tracing library, though we usually do not add feature information
for libraries in general.
Change-Id: I51b6993e30ec69d63a031c7bf404ea3887e14d84
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Diffstat (limited to 'cmake/QtCreatorAPI.cmake')
-rw-r--r-- | cmake/QtCreatorAPI.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cmake/QtCreatorAPI.cmake b/cmake/QtCreatorAPI.cmake index c417d3ab9e..df497f70e9 100644 --- a/cmake/QtCreatorAPI.cmake +++ b/cmake/QtCreatorAPI.cmake @@ -94,7 +94,7 @@ function(qtc_output_binary_dir varName) endfunction() function(add_qtc_library name) - cmake_parse_arguments(_arg "STATIC;OBJECT;SKIP_TRANSLATION;ALLOW_ASCII_CASTS;UNVERSIONED" + cmake_parse_arguments(_arg "STATIC;OBJECT;SKIP_TRANSLATION;ALLOW_ASCII_CASTS;UNVERSIONED;FEATURE_INFO" "DESTINATION;COMPONENT;SOURCES_PREFIX;BUILD_DEFAULT" "CONDITION;DEPENDS;PUBLIC_DEPENDS;DEFINES;PUBLIC_DEFINES;INCLUDES;PUBLIC_INCLUDES;SOURCES;EXPLICIT_MOC;SKIP_AUTOMOC;EXTRA_TRANSLATIONS;PROPERTIES" ${ARGN} ) @@ -110,6 +110,7 @@ function(add_qtc_library name) update_cached_list(__QTC_LIBRARIES "${name}") + condition_info(_extra_text _arg_CONDITION) if (NOT _arg_CONDITION) set(_arg_CONDITION ON) endif() @@ -131,6 +132,9 @@ function(add_qtc_library name) set(_library_enabled OFF) endif() + if(DEFINED _arg_FEATURE_INFO) + add_feature_info("Library ${name}" _library_enabled "${_extra_text}") + endif() if (NOT _library_enabled) return() endif() |