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")