From 4c5dd8cefbcef506588f56aa10942aa24a9fbe61 Mon Sep 17 00:00:00 2001 From: Jaydeep Patel Date: Mon, 6 Nov 2023 11:59:29 +0000 Subject: [PATCH] SWDEV-430086 - Need to set BUILD_SHARED_LIBS so that it gets reflected to rocclr. Build process was top down Pre CLR (23.10) vs bottom up since CLR (>=23.20) and so BUILD_SHARED_LIBS value is not being reflected in rocclr build process since CLR. With this change, BUILD_SHARED_LIBS is set pre rocclr compilation. Change-Id: Ia2cd3b8148e9df2df222c1e734d927f2c029017e [ROCm/clr commit: 1717078536aa06bd5f24ccd6b79979fcf0492fd0] --- projects/clr/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/projects/clr/CMakeLists.txt b/projects/clr/CMakeLists.txt index 13fccea9cb..97999bab8c 100644 --- a/projects/clr/CMakeLists.txt +++ b/projects/clr/CMakeLists.txt @@ -67,7 +67,9 @@ if(CLR_BUILD_HIP) endif() endif() endif() - +if(CLR_BUILD_HIP) + option(BUILD_SHARED_LIBS "Build the shared library" ON) +endif() if((CLR_BUILD_HIP AND HIP_PLATFORM STREQUAL "amd") OR CLR_BUILD_OCL) add_subdirectory(rocclr) elseif(HIP_PLATFORM STREQUAL "amd")