roctracer static linking

Change-Id: I4df98c6d9991a3a58e2f646fc0c8fe8f104a105d
This commit is contained in:
Evgeny
2020-08-05 00:37:28 -05:00
parent ac59f349d4
commit a9048f33a8
5 ha cambiato i file con 152 aggiunte e 9 eliminazioni
+8
Vedi File
@@ -65,6 +65,13 @@ if ( DEFINED ENV{CMAKE_DEBUG_TRACE} )
add_definitions ( -DDEBUG_TRACE=1 )
endif()
if ( NOT DEFINED LIBRARY_TYPE )
set ( LIBRARY_TYPE SHARED )
endif()
if ( ${LIBRARY_TYPE} STREQUAL STATIC )
add_definitions ( -DSTATIC_BUILD=1 )
endif()
if ( NOT DEFINED HIP_API_STRING )
set ( HIP_API_STRING 1 )
endif()
@@ -169,6 +176,7 @@ message ( "-------------HIP-VDI: ${HIP_VDI}" )
message ( "-----CMAKE_CXX_FLAGS: ${CMAKE_CXX_FLAGS}" )
message ( "---CMAKE_PREFIX_PATH: ${CMAKE_PREFIX_PATH}" )
message ( "---------GPU_TARGETS: ${GPU_TARGETS}" )
message ( "--------LIBRARY_TYPE: ${LIBRARY_TYPE}" )
## Check the ROCm pathes
if ( "${HSA_RUNTIME_INC_PATH}" STREQUAL "" )