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
Этот коммит содержится в:
1 родитель
590c6c3b4f
Коммит
6e195ded9b
3 files changed
+9
-2
No files matched your search
@@ -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()
|
||||
|
||||
# ----------------------------------------------------------------------------------------#
|
||||
#
|
||||
|
||||
Reference in new issue
Block a user