@@ -406,16 +406,17 @@ if(UMF_BUILD_LEVEL_ZERO_PROVIDER AND (NOT UMF_LEVEL_ZERO_INCLUDE_DIR))
406
406
GIT_REPOSITORY ${LEVEL_ZERO_LOADER_REPO}
407
407
GIT_TAG ${LEVEL_ZERO_LOADER_TAG}
408
408
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 )
410
411
411
412
set (LEVEL_ZERO_INCLUDE_DIRS
412
413
${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} " )
415
416
elseif (UMF_BUILD_LEVEL_ZERO_PROVIDER )
416
417
# Only header is needed to build UMF
417
418
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} " )
419
420
endif ()
420
421
421
422
# 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))
425
426
"https://gitlab.com/nvidia/headers/cuda-individual/cudart.git" )
426
427
set (CUDA_TAG cuda-12.5.1 )
427
428
428
- message (STATUS "Fetching CUDA ${CUDA_TAG} from ${CUDA_REPO} ..." )
429
+ message (STATUS "Fetching CUDA ( ${CUDA_TAG} ) from ${CUDA_REPO} ..." )
429
430
430
431
FetchContent_Declare (
431
432
cuda-headers
432
433
GIT_REPOSITORY ${CUDA_REPO}
433
434
GIT_TAG ${CUDA_TAG}
434
435
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 )
436
438
437
439
set (CUDA_INCLUDE_DIRS
438
440
${cuda-headers_SOURCE_DIR}
0 commit comments