From 5c782ffd39d2c56be5df40d46405e826c72faf1d Mon Sep 17 00:00:00 2001 From: Rafal Bielski Date: Mon, 21 Apr 2025 16:07:18 +0100 Subject: [PATCH] Set blas cmake options also with PARENT_SCOPE This is required for the update value to be visible in a dependent project including generic blas using FetchContent. --- onemath/sycl/blas/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/onemath/sycl/blas/CMakeLists.txt b/onemath/sycl/blas/CMakeLists.txt index 62e1d71..4587013 100644 --- a/onemath/sycl/blas/CMakeLists.txt +++ b/onemath/sycl/blas/CMakeLists.txt @@ -70,10 +70,16 @@ if (SYCL_COMPILER MATCHES "adaptivecpp" OR ${CMAKE_CXX_COMPILER} MATCHES "acpp|s if(BLAS_ENABLE_COMPLEX) message(STATUS "SYCL Complex data is not supported on AdaptiveCpp/hipSYCL. Complex data type is disabled") set(BLAS_ENABLE_COMPLEX OFF) + if (NOT ${CMAKE_CURRENT_SOURCE_DIR} STREQUAL ${CMAKE_SOURCE_DIR}) + set(BLAS_ENABLE_COMPLEX OFF PARENT_SCOPE) + endif() endif() if (BLAS_ENABLE_USM) message(STATUS "USM API is not supported on AdaptiveCpp/hipSYCL. USM API is disabled") set(BLAS_ENABLE_USM OFF) + if (NOT ${CMAKE_CURRENT_SOURCE_DIR} STREQUAL ${CMAKE_SOURCE_DIR}) + set(BLAS_ENABLE_USM OFF PARENT_SCOPE) + endif() endif() endif()