From a9d1b68f3e33c93918208862593cf12cfab8a919 Mon Sep 17 00:00:00 2001 From: Vin Huang Date: Sat, 2 Dec 2023 00:42:44 +0800 Subject: [PATCH] Enable package: hipsparselt-samples * disable BUILD_CLIENTS_SAMPLES by default * add samples to rocm package setup --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f96cadf6..e10585cb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,7 +27,7 @@ cmake_minimum_required( VERSION 3.16.8 ) option(BUILD_SHARED_LIBS "Build hipSparseLt as a shared library" ON ) option(BUILD_CLIENTS_TESTS "Build tests (requires googletest)" OFF) option(BUILD_CLIENTS_BENCHMARKS "Build benchmarks" OFF) -option(BUILD_CLIENTS_SAMPLES "Build examples" ON) +option(BUILD_CLIENTS_SAMPLES "Build examples" OFF) option(BUILD_VERBOSE "Output additional build information" OFF) option(BUILD_CODE_COVERAGE "Build with code coverage enabled" OFF) option(BUILD_ADDRESS_SANITIZER "Build with address sanitizer enabled" OFF) @@ -270,6 +270,9 @@ if( BUILD_CLIENTS_SAMPLES OR BUILD_CLIENTS_TESTS OR BUILD_CLIENTS_BENCHMARKS ) RPM "${OPENMP_RPM}" ) endif() + if(BUILD_CLIENTS_SAMPLES) + rocm_package_setup_client_component(samples) + endif() endif() # FOR HANDLING ENABLE/DISABLE OPTIONAL BACKWARD COMPATIBILITY for FILE/FOLDER REORG