Install LibElf config module.

libelf does not natively support cmake packages and is not located
by cmake's default system library modules.

Change-Id: I4e7cda32615febf9f45ccc15f4e2a3f3505804bb
This commit is contained in:
Sean Keely
2020-06-12 15:55:49 -05:00
parent 0be21c54a6
commit 727cc9ccd3
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -309,6 +309,11 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${CORE_RUNTIME_TARGET}-config.cmake ${
DESTINATION lib/cmake/${CORE_RUNTIME_TARGET}
COMPONENT dev)
# Install the libelf find module
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules/FindLibElf.cmake ${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules/COPYING-CMAKE-SCRIPTS
DESTINATION lib/cmake/${CORE_RUNTIME_TARGET}
COMPONENT dev)
# Optionally record the package's find module in the user's package cache.
if ( NOT DEFINED EXPORT_TO_USER_PACKAGE_REGISTRY )
set ( EXPORT_TO_USER_PACKAGE_REGISTRY "off" )
@@ -45,5 +45,6 @@
include( CMakeFindDependencyMacro )
find_dependency(hsakmt 1.0)
find_dependency(elf::elf)
include( "${CMAKE_CURRENT_LIST_DIR}/@CORE_RUNTIME_TARGET@Targets.cmake" )