Skip to content

Commit

Permalink
fix libairhost.a build dir (Xilinx#549)
Browse files Browse the repository at this point in the history
  • Loading branch information
fifield authored Apr 24, 2024
1 parent 8afa722 commit 9445e5c
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions runtime_lib/airhost/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,24 +56,14 @@ if (hsa-runtime64_FOUND)

set_target_properties(airhost PROPERTIES
LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/${AIR_RUNTIME_TARGET}/airhost)
set_target_properties(airhost PROPERTIES
ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/${AIR_RUNTIME_TARGET}/airhost)
install(TARGETS airhost DESTINATION ${CMAKE_INSTALL_PREFIX}/runtime_lib/${AIR_RUNTIME_TARGET}/airhost)

set_target_properties(airhost_shared PROPERTIES
LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/${AIR_RUNTIME_TARGET}/airhost)
install(TARGETS airhost_shared DESTINATION ${CMAKE_INSTALL_PREFIX}/runtime_lib/${AIR_RUNTIME_TARGET}/airhost)


# Stuff into the build area:
add_custom_target(copy-runtime-libs ALL)
foreach(file ${INSTALLS})
add_custom_target(copy-runtime-libs-${file} ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${file})
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${file}
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/${file}
${PROJECT_BINARY_DIR}/${AIR_RUNTIME_TARGET}/airhost/${file}
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${file})
add_dependencies(copy-runtime-libs copy-runtime-libs-${file} )
endforeach()

endif()

add_subdirectory(include)

0 comments on commit 9445e5c

Please sign in to comment.