소스 검색

Merge topic 'instrumentation-module-lib'

2bf3fd05cc instrumentation: Include MODULE_LIBRARY in CMake content

Acked-by: Kitware Robot <[email protected]>
Merge-request: !11570
Brad King 1 개월 전
부모
커밋
1f70fbbd83
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;
 }