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]
Tá an tiomantas seo le fáil i:
Kent Russell tiomanta 2021-04-08 14:38:20 -04:00
1 tuismitheoir 91ce259273
tiomantas 3f3b280a4c
1 comhad athraithe
+2 -1
+2 -1
Féach ar an gComhad
@@ -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.")