cmake: Fix BUILD_SHARED_LIBS option and README for it

BUILD_SHARED_LIBS is a global flag so we don't need to set a default
option for it in both libhsakmt and hsa-runtime, only the top level
CMakeLists file. Also updated README to reflect that libhsakmt is
always built statically and gets linked to libhsa-runtime.

Change-Id: I1511f68a268032bec9758bc731d8074f33ec980f


[ROCm/ROCR-Runtime commit: ff01f62777]
Tento commit je obsažen v:
sonadeem
2025-01-28 17:47:06 -05:00
odevzdal Sohaib Nadeem
rodič 75a060fc53
revize 02edf09f87
4 změnil soubory, kde provedl 8 přidání a 14 odebrání
-6
Zobrazit soubor
@@ -63,12 +63,6 @@ include ( utils )
include ( hsa_common )
include ( GNUInstallDirs )
## Expose static library option
if ( NOT DEFINED BUILD_SHARED_LIBS )
set ( BUILD_SHARED_LIBS ON )
endif()
set ( BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS} CACHE BOOL "Build shared library (.so) or not.")
## Adjust target name for static builds
## Original name will be an interface target that adds --whole-archive linker options around the target.
if( NOT ${BUILD_SHARED_LIBS} )