File tree Expand file tree Collapse file tree
rdc_libs/rdc_modules/rdc_rvs Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,34 +37,12 @@ find_package_handle_standard_args(
3737)
3838
3939if (${NAME} _FOUND AND NOT TARGET ${NAME} ::${NAME} )
40- add_library (${NAME} ::${NAME} UNKNOWN IMPORTED )
40+ add_library (${NAME} ::${NAME} SHARED IMPORTED )
4141 set_target_properties (
4242 ${NAME} ::${NAME}
4343 PROPERTIES
4444 IMPORTED_LOCATION "${${NAME} _LIBRARY}"
4545 INTERFACE_COMPILE_OPTIONS "${PC_${NAME} _CFLAGS_OTHER}"
4646 INTERFACE_INCLUDE_DIRECTORIES "${${NAME} _INCLUDE_DIR}"
4747 )
48- find_library (rocm-core NAMES rocm-core REQUIRED )
49- find_package (yaml-cpp REQUIRED )
50- find_package (rocblas REQUIRED )
51- find_package (hipblaslt REQUIRED )
52- find_package (hsakmt REQUIRED )
53- find_package (hip REQUIRED )
54- find_package (hiprand REQUIRED )
55- find_package (hsa-runtime64 REQUIRED )
56- find_package (amd_smi REQUIRED )
57- target_link_libraries (
58- ${NAME} ::${NAME}
59- INTERFACE
60- ${rocm-core}
61- yaml-cpp
62- roc::rocblas
63- roc::hipblaslt
64- hsakmt::hsakmt
65- hip::amdhip64
66- hip::hiprand
67- hsa-runtime64::hsa-runtime64
68- amd_smi
69- )
7048endif ()
Original file line number Diff line number Diff line change @@ -34,9 +34,10 @@ if(BUILD_RVS)
3434
3535 set (RDC_LIB_MODULES ${RDC_LIB_MODULES} ${RDC_RVS_LIB} PARENT_SCOPE )
3636 add_library (${RDC_RVS_LIB} SHARED ${RDC_RVS_LIB_SRC_LIST} ${RDC_RVS_LIB_INC_LIST} )
37+ find_package (yaml-cpp REQUIRED )
3738 target_link_libraries (
3839 ${RDC_RVS_LIB}
39- PRIVATE ${RDC_LIB} ${BOOTSTRAP_LIB} rvs::rvs pthread dl
40+ PRIVATE ${RDC_LIB} ${BOOTSTRAP_LIB} rvs::rvs yaml-cpp pthread dl
4041 )
4142 target_include_directories (
4243 ${RDC_RVS_LIB}
You can’t perform that action at this time.
0 commit comments