Просмотр исходного кода

instrumentation: Include MODULE_LIBRARY in CMake content

Issue: #27488
Martin Duffy 1 месяц назад
Родитель
Сommit
2bf3fd05cc
2 измененных файлов с 3 добавлено и 2 удалено
  1. 2 2
      Help/manual/cmake-instrumentation.7.rst
  2. 1 0
      Source/cmInstrumentation.cxx

+ 2 - 2
Help/manual/cmake-instrumentation.7.rst

@@ -569,8 +569,8 @@ Each CMake content file contains the following:
 
     ``type``
       The :prop_tgt:`TYPE` property of the target. Only ``EXECUTABLE``,
-      ``STATIC_LIBRARY``, ``SHARED_LIBRARY``, and ``OBJECT_LIBRARY`` targets
-      are included.
+      ``STATIC_LIBRARY``, ``SHARED_LIBRARY``, ``MODULE_LIBRARY`` and
+      ``OBJECT_LIBRARY`` targets are included.
 
     ``labels``
       The :prop_tgt:`LABELS` property of the target.

+ 1 - 0
Source/cmInstrumentation.cxx

@@ -794,6 +794,7 @@ bool cmInstrumentation::IsInstrumentableTargetType(
   return type == cmStateEnums::TargetType::EXECUTABLE ||
     type == cmStateEnums::TargetType::SHARED_LIBRARY ||
     type == cmStateEnums::TargetType::STATIC_LIBRARY ||
+    type == cmStateEnums::TargetType::MODULE_LIBRARY ||
     type == cmStateEnums::TargetType::OBJECT_LIBRARY;
 }