From c1bac0d3504816e891bd030b8ab415ed63ea9dee Mon Sep 17 00:00:00 2001 From: Maneesh Gupta Date: Wed, 19 Oct 2016 12:41:11 +0530 Subject: [PATCH] Make directed tests linking depend upon HIP_PATH/lib/* Change-Id: I35203fc655325428e241a541f64c103fb2004b6e [ROCm/clr commit: e1b658caff7e4a8f564d4f8b97275c02cc84b65b] --- projects/clr/hipamd/tests/hit/HIT.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/clr/hipamd/tests/hit/HIT.cmake b/projects/clr/hipamd/tests/hit/HIT.cmake index 206d63c77f..0c8f7d39c3 100644 --- a/projects/clr/hipamd/tests/hit/HIT.cmake +++ b/projects/clr/hipamd/tests/hit/HIT.cmake @@ -130,6 +130,7 @@ endmacro() #------------------------------------------------------------------------------- # Macro: HIT_ADD_FILES used to scan+add multiple files for testing. +file(GLOB HIP_LIB_FILES ${HIP_PATH}/lib/*) macro(HIT_ADD_FILES _dir _label) foreach (file ${ARGN}) # Build tests @@ -148,7 +149,7 @@ macro(HIT_ADD_FILES _dir _label) else() set_source_files_properties(${_sources} PROPERTIES HIP_SOURCE_PROPERTY_FORMAT 1) hip_add_executable(${target} ${_sources} HIPCC_OPTIONS ${_hipcc_options} HCC_OPTIONS ${_hcc_options} NVCC_OPTIONS ${_nvcc_options}) - set_target_properties(${target} PROPERTIES OUTPUT_NAME ${_target} RUNTIME_OUTPUT_DIRECTORY ${_label}) + set_target_properties(${target} PROPERTIES OUTPUT_NAME ${_target} RUNTIME_OUTPUT_DIRECTORY ${_label} LINK_DEPENDS "${HIP_LIB_FILES}") endif() endforeach()