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
This commit is contained in:
committed by
Sohaib Nadeem
orang tua
f24d789dee
melakukan
ff01f62777
@@ -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} )
|
||||
|
||||
Reference in New Issue
Block a user