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
60 lines
1.8 KiB
CMake
60 lines
1.8 KiB
CMake
#================================================================
|
|
#
|
|
# Configure elfutils
|
|
#
|
|
# ----------------------------------------
|
|
#
|
|
# ElfUtils_ROOT_DIR - Location of elfutils installation
|
|
#
|
|
# The individual find-modules use the <Package>_ROOT convention
|
|
# as the first location to search for the package. If the user
|
|
# specifies ElfUtils_ROOT_DIR, we override the <Package>_ROOT
|
|
# values and require that each package ignores system directories.
|
|
# In effect, this forces the package search to find only
|
|
# candidates in <Package>_ROOT or CMAKE_PREFIX_PATH.
|
|
#
|
|
#================================================================
|
|
|
|
include_guard(GLOBAL)
|
|
|
|
# elfutils is only available on Unixes; provide a dummy target on other platforms
|
|
if(NOT UNIX)
|
|
if(NOT TARGET Dyninst::ElfUtils)
|
|
add_library(Dyninst::ElfUtils INTERFACE)
|
|
endif()
|
|
return()
|
|
endif()
|
|
|
|
# We need >=0.186 because of NVIDIA line map extensions
|
|
set(_min_version 0.186)
|
|
|
|
if(ENABLE_DEBUGINFOD)
|
|
set(_components debuginfod)
|
|
endif()
|
|
|
|
if(ElfUtils_ROOT_DIR)
|
|
set(ElfUtils_NO_SYSTEM_PATHS ON)
|
|
endif()
|
|
|
|
# If Dyninst::ElfUtils target already exists (created by rocprofiler-systems build),
|
|
# skip find_package since dependencies are being built from source
|
|
if(TARGET Dyninst::ElfUtils)
|
|
message(STATUS "Using pre-configured Dyninst::ElfUtils target (building from source)")
|
|
return()
|
|
endif()
|
|
|
|
find_package(Elfutils ${_min_version} REQUIRED COMPONENTS ${_components})
|
|
unset(_components)
|
|
|
|
if(NOT TARGET Dyninst::ElfUtils)
|
|
add_library(Dyninst::ElfUtils INTERFACE IMPORTED)
|
|
target_include_directories(Dyninst::ElfUtils SYSTEM INTERFACE ${Elfutils_INCLUDE_DIRS})
|
|
target_link_libraries(Dyninst::ElfUtils INTERFACE Elfutils::Elfutils)
|
|
if(ENABLE_DEBUGINFOD)
|
|
set_property(
|
|
TARGET Dyninst::ElfUtils
|
|
APPEND
|
|
PROPERTY INTERFACE_COMPILE_DEFINITIONS DEBUGINFOD_LIB)
|
|
endif()
|
|
endif()
|