Fixing cmake_modules
Removing unused definitions and compile options Using cmake variables to set the options needed Changing the visibility to make it specific for the targets Change-Id: I80cf0997cd28897d5a06a58c7225ba40dfc51e2d
Cette révision appartient à :
révisé par
Ammar Elwazir
Parent
3882091c71
révision
2f5313a0c7
@@ -44,6 +44,7 @@ set ( LIB_SRC
|
||||
add_library ( ${TARGET_LIB} ${LIBRARY_TYPE} ${LIB_SRC} )
|
||||
target_include_directories ( ${TARGET_LIB} PRIVATE ${LIB_DIR} ${ROOT_DIR} ${ROOT_DIR}/inc ${HSA_RUNTIME_INC_PATH} ${ROCM_INC_PATH} ${HIP_INC_DIR} ${HSA_KMT_INC_PATH} ${GEN_INC_DIR} )
|
||||
target_link_libraries( ${TARGET_LIB} PRIVATE ${HSA_RUNTIME_LIB} c stdc++ )
|
||||
set_target_properties( ${TARGET_LIB} PROPERTIES CXX_VISIBILITY_PRESET hidden )
|
||||
|
||||
# Build ROCTX tracing library
|
||||
set ( ROCTX_LIB "roctx64" )
|
||||
@@ -53,3 +54,4 @@ set ( ROCTX_LIB_SRC
|
||||
add_library ( ${ROCTX_LIB} SHARED ${ROCTX_LIB_SRC} )
|
||||
target_include_directories ( ${ROCTX_LIB} PRIVATE ${LIB_DIR} ${ROOT_DIR} ${ROOT_DIR}/inc ${HSA_RUNTIME_INC_PATH} ${GEN_INC_DIR} )
|
||||
target_link_libraries( ${ROCTX_LIB} PRIVATE c stdc++ )
|
||||
set_target_properties( ${ROCTX_LIB} PROPERTIES CXX_VISIBILITY_PRESET hidden )
|
||||
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur