From 2bf3fd05ccc019f8e152c41a339f2fdc8a053d19 Mon Sep 17 00:00:00 2001 From: Martin Duffy Date: Wed, 7 Jan 2026 09:32:04 -0500 Subject: [PATCH] instrumentation: Include MODULE_LIBRARY in CMake content Issue: #27488 --- Help/manual/cmake-instrumentation.7.rst | 4 ++-- Source/cmInstrumentation.cxx | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Help/manual/cmake-instrumentation.7.rst b/Help/manual/cmake-instrumentation.7.rst index f958bb05c1..1a8418ea88 100644 --- a/Help/manual/cmake-instrumentation.7.rst +++ b/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. diff --git a/Source/cmInstrumentation.cxx b/Source/cmInstrumentation.cxx index 6ccf01dd48..3edc4ddd7a 100644 --- a/Source/cmInstrumentation.cxx +++ b/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; }