roctracer:All libraries need to be installed with LIBRARY TAG

Cmake will do the post processing required for RPATH or any other
needed for the libraries only if installed as libraries not as
regular files

FIX: SWDEV-287893
Change-Id: I9cf478fcd23b9f2e8b3bdd81aa566cad3ec2a5e3
This commit is contained in:
Freddy Paul
2021-05-26 08:57:06 -07:00
committed by Freddy Paul
parent e5dd1e9b85
commit 1cc934204f
2 changed files with 2 additions and 2 deletions
+1
View File
@@ -87,6 +87,7 @@ if ( DEFINED ROCTRACER_TARGET )
add_library ( ${TEST_LIB} SHARED ${TEST_LIB_SRC} )
target_include_directories ( ${TEST_LIB} PRIVATE ${HSA_TEST_DIR} ${ROOT_DIR} ${ROOT_DIR}/inc ${HSA_RUNTIME_INC_PATH} ${HIP_INC_DIR} ${HSA_KMT_INC_PATH} ${GEN_INC_DIR} )
target_link_libraries ( ${TEST_LIB} ${ROCTRACER_TARGET} ${HSA_RUNTIME_LIB} c stdc++ dl pthread rt numa )
install ( TARGETS ${TEST_LIB} LIBRARY DESTINATION ${DEST_NAME}/tool )
endif ()
## Build hsaco_test.cpp referenc test