Skip to content

Commit c23d727

Browse files
authored
Merge pull request intel#1350 from igchor/do_not_build_umf_tests
[UR] Do not build UMF tests if UR tests are disabled
2 parents 69ac6c7 + 43e64bc commit c23d727

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source/common/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ FetchContent_Declare(unified-memory-framework
3434
GIT_TAG ${UMF_TAG}
3535
)
3636

37+
if(UR_BUILD_TESTS)
38+
set(UMF_BUILD_TESTS ON CACHE INTERNAL "Build UMF tests")
39+
else()
40+
set(UMF_BUILD_TESTS OFF CACHE INTERNAL "Build UMF tests")
41+
endif()
3742
set(UMF_BUILD_LIBUMF_POOL_DISJOINT ON CACHE INTERNAL "Build Disjoint Pool")
3843
set(UMF_BUILD_OS_MEMORY_PROVIDER OFF CACHE INTERNAL "Build OS Provider")
3944

0 commit comments

Comments
 (0)