Skip to content

Commit 59293b1

Browse files
[CMake] Don't use deprecated function
Switch from FetchContent_Populate to FetchContent_MakeAvailable. Fixes: #734
1 parent 93fa68e commit 59293b1

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

examples/cuda_shared_memory/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ FetchContent_Declare(
3838

3939
FetchContent_GetProperties(cuda-headers)
4040
if(NOT cuda-headers_POPULATED)
41-
FetchContent_Populate(cuda-headers)
41+
FetchContent_MakeAvailable(cuda-headers)
4242
endif()
4343

4444
set(CUDA_INCLUDE_DIRS

examples/ipc_level_zero/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ FetchContent_Declare(
3939

4040
FetchContent_GetProperties(level-zero-loader)
4141
if(NOT level-zero-loader_POPULATED)
42-
FetchContent_Populate(level-zero-loader)
42+
FetchContent_MakeAvailable(level-zero-loader)
4343
endif()
4444

4545
set(LEVEL_ZERO_INCLUDE_DIRS

examples/level_zero_shared_memory/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ FetchContent_Declare(
3939

4040
FetchContent_GetProperties(level-zero-loader)
4141
if(NOT level-zero-loader_POPULATED)
42-
FetchContent_Populate(level-zero-loader)
42+
FetchContent_MakeAvailable(level-zero-loader)
4343
endif()
4444

4545
set(LEVEL_ZERO_INCLUDE_DIRS

src/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ if(UMF_BUILD_LEVEL_ZERO_PROVIDER AND (UMF_BUILD_GPU_TESTS
3535

3636
FetchContent_GetProperties(level-zero-loader)
3737
if(NOT level-zero-loader_POPULATED)
38-
FetchContent_Populate(level-zero-loader)
38+
FetchContent_MakeAvailable(level-zero-loader)
3939
endif()
4040

4141
set(LEVEL_ZERO_INCLUDE_DIRS
@@ -65,7 +65,7 @@ if(UMF_BUILD_CUDA_PROVIDER)
6565

6666
FetchContent_GetProperties(cuda-headers)
6767
if(NOT cuda-headers_POPULATED)
68-
FetchContent_Populate(cuda-headers)
68+
FetchContent_MakeAvailable(cuda-headers)
6969
endif()
7070

7171
set(CUDA_INCLUDE_DIRS

0 commit comments

Comments
 (0)