CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
56 lines
1.6 KiB
CMake
56 lines
1.6 KiB
CMake
#[=======================================================================[.rst:
|
|
FindThread_DB
|
|
-------------
|
|
|
|
Find thread_db, the debugger interface for the NPTL library.
|
|
|
|
Imported targets
|
|
^^^^^^^^^^^^^^^^
|
|
|
|
This module defines the following :prop_tgt:`IMPORTED` target:
|
|
|
|
``Thread_DB::Thread_DB``
|
|
The threaddb library, if found.
|
|
|
|
Result variables
|
|
^^^^^^^^^^^^^^^^
|
|
|
|
This module will set the following variables in your project:
|
|
|
|
``Thread_DB_INCLUDE_DIRS``
|
|
where to find thread_db.h, etc.
|
|
``Thread_DB_LIBRARIES``
|
|
the libraries to link against to use thread_db.
|
|
``Thread_DB_FOUND``
|
|
If false, do not try to use thread_db.
|
|
|
|
Thread_DB does not have its own version number or release schedule.
|
|
See https://sourceware.org/gdb/current/onlinedocs/gdb/Threads.html for details.
|
|
|
|
#]=======================================================================]
|
|
cmake_policy(SET CMP0074 NEW) # Use <Package>_ROOT
|
|
|
|
find_path(Thread_DB_INCLUDE_DIRS NAMES thread_db.h)
|
|
|
|
find_library(Thread_DB_LIBRARIES NAMES thread_db)
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(
|
|
Thread_DB
|
|
FOUND_VAR Thread_DB_FOUND
|
|
REQUIRED_VARS Thread_DB_LIBRARIES Thread_DB_INCLUDE_DIRS)
|
|
|
|
if(Thread_DB_FOUND)
|
|
if(NOT TARGET Thread_DB::Thread_DB)
|
|
add_library(Thread_DB::Thread_DB UNKNOWN IMPORTED)
|
|
set_target_properties(
|
|
Thread_DB::Thread_DB
|
|
PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${Thread_DB_INCLUDE_DIRS}"
|
|
IMPORTED_LINK_INTERFACE_LANGUAGES "C"
|
|
IMPORTED_LOCATION "${Thread_DB_LIBRARIES}")
|
|
endif()
|
|
|
|
mark_as_advanced(Thread_DB_INCLUDE_DIRS)
|
|
mark_as_advanced(Thread_DB_LIBRARIES)
|
|
endif()
|