Update rocprofiler_config_interfaces.cmake to use different elf naming (#1722)

* Update rocprofiler_config_interfaces.cmake to use different elf naming

* try out conditional for libelf

* run cmake-format to fix formatting issue

* Remove libelf.patch file from therock-ci-windows.yml

* Remove libelf patch from therock-ci-linux.yml as well
Этот коммит содержится в:
Jason Bonnell authored and GitHub committed 2025-11-06 23:50:02 -05:00
1 родитель 590c6c3b4f
Коммит 6e195ded9b
3 files changed
+9 -2

No files matched your search

+7 -2
Просмотреть файл
@@ -198,8 +198,13 @@ target_link_libraries(rocprofiler-sdk-ptl INTERFACE PTL::ptl-static)
#
# ----------------------------------------------------------------------------------------#
find_package(libelf REQUIRED)
target_link_libraries(rocprofiler-sdk-elf INTERFACE libelf::libelf)
find_package(LibElf)
if(LibElf_FOUND)
target_link_libraries(rocprofiler-sdk-elf INTERFACE elf::elf)
else()
find_package(libelf REQUIRED)
target_link_libraries(rocprofiler-sdk-elf INTERFACE libelf::libelf)
endif()
# ----------------------------------------------------------------------------------------#
#