@@ -406,16 +406,17 @@ if(UMF_BUILD_LEVEL_ZERO_PROVIDER AND (NOT UMF_LEVEL_ZERO_INCLUDE_DIR))
406406 GIT_REPOSITORY ${LEVEL_ZERO_LOADER_REPO}
407407 GIT_TAG ${LEVEL_ZERO_LOADER_TAG}
408408 EXCLUDE_FROM_ALL )
409- FetchContent_MakeAvailable(level-zero-loader)
409+ # Only populate the repo - we don't need to build it
410+ FetchContent_Populate(level-zero-loader)
410411
411412 set (LEVEL_ZERO_INCLUDE_DIRS
412413 ${level-zero-loader_SOURCE_DIR}/include
413- CACHE PATH "Path to Level Zero Headers " )
414- message (STATUS "Level Zero include directory: ${LEVEL_ZERO_INCLUDE_DIRS} " )
414+ CACHE PATH "Path to Level Zero headers " )
415+ message (STATUS "LEVEL_ZERO_INCLUDE_DIRS = ${LEVEL_ZERO_INCLUDE_DIRS} " )
415416elseif (UMF_BUILD_LEVEL_ZERO_PROVIDER)
416417 # Only header is needed to build UMF
417418 set (LEVEL_ZERO_INCLUDE_DIRS ${UMF_LEVEL_ZERO_INCLUDE_DIR} )
418- message (STATUS "Level Zero include directory: ${LEVEL_ZERO_INCLUDE_DIRS} " )
419+ message (STATUS "LEVEL_ZERO_INCLUDE_DIRS = ${LEVEL_ZERO_INCLUDE_DIRS} " )
419420endif ()
420421
421422# Fetch CUDA only if needed i.e.: if building CUDA provider is ON and CUDA
@@ -425,14 +426,15 @@ if(UMF_BUILD_CUDA_PROVIDER AND (NOT UMF_CUDA_INCLUDE_DIR))
425426 "https://gitlab.com/nvidia/headers/cuda-individual/cudart.git" )
426427 set (CUDA_TAG cuda-12.5.1)
427428
428- message (STATUS "Fetching CUDA ${CUDA_TAG} from ${CUDA_REPO} ..." )
429+ message (STATUS "Fetching CUDA ( ${CUDA_TAG} ) from ${CUDA_REPO} ..." )
429430
430431 FetchContent_Declare(
431432 cuda-headers
432433 GIT_REPOSITORY ${CUDA_REPO}
433434 GIT_TAG ${CUDA_TAG}
434435 EXCLUDE_FROM_ALL )
435- FetchContent_MakeAvailable(cuda-headers)
436+ # Only populate the repo - we don't need to build it
437+ FetchContent_Populate(cuda-headers)
436438
437439 set (CUDA_INCLUDE_DIRS
438440 ${cuda-headers_SOURCE_DIR}
0 commit comments