From 3f3b280a4cbe9287ec061c630113a62faafb80e1 Mon Sep 17 00:00:00 2001 From: Kent Russell Date: Mon, 22 Mar 2021 09:59:41 -0400 Subject: [PATCH] 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: d748d6dce744fb8778369b03238033ccbdd16bcb] --- projects/rocr-runtime/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/rocr-runtime/CMakeLists.txt b/projects/rocr-runtime/CMakeLists.txt index 63983d9293..26c8528016 100644 --- a/projects/rocr-runtime/CMakeLists.txt +++ b/projects/rocr-runtime/CMakeLists.txt @@ -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.")