CMakelists: Build thunk as static by default

This can be overwritten by changing BUILD_SHARED_LIBS=true, but we
default it to static to allow for merging into ROCr

Change-Id: Ic286ef7903a5bc788fe3b84bb13b15bdd3a6f60b


[ROCm/ROCR-Runtime commit: d748d6dce7]
This commit is contained in:
Kent Russell
2021-03-22 09:59:41 -04:00
parent 91ce259273
commit 3f3b280a4c
+2 -1
View File
@@ -32,8 +32,9 @@ set ( HSAKMT_TARGET "${HSAKMT}" )
project ( ${HSAKMT_TARGET} VERSION 1.9.0)
# Build thunk as static by default
if ( NOT DEFINED BUILD_SHARED_LIBS )
set ( BUILD_SHARED_LIBS "on" )
set ( BUILD_SHARED_LIBS "off" )
endif()
set ( BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS} CACHE BOOL "Build shared library (.so) or not.")