From 43e64bcef6f662c127947cc9b0e0a5dbbf416a33 Mon Sep 17 00:00:00 2001 From: Igor Chorazewicz Date: Thu, 15 Feb 2024 21:23:40 +0100 Subject: [PATCH] [UR] Do not build UMF tests if UR tests are disabled --- source/common/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/common/CMakeLists.txt b/source/common/CMakeLists.txt index f787fc6c0b..c156f11795 100644 --- a/source/common/CMakeLists.txt +++ b/source/common/CMakeLists.txt @@ -34,6 +34,11 @@ FetchContent_Declare(unified-memory-framework GIT_TAG ${UMF_TAG} ) +if(UR_BUILD_TESTS) + set(UMF_BUILD_TESTS ON CACHE INTERNAL "Build UMF tests") +else() + set(UMF_BUILD_TESTS OFF CACHE INTERNAL "Build UMF tests") +endif() set(UMF_BUILD_LIBUMF_POOL_DISJOINT ON CACHE INTERNAL "Build Disjoint Pool") set(UMF_BUILD_OS_MEMORY_PROVIDER OFF CACHE INTERNAL "Build OS Provider")