Skip to content

Commit 2840f19

Browse files
fix sgl_download_package (#300)
Co-authored-by: Simon Kallweit <[email protected]>
1 parent a33b9bc commit 2840f19

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

external/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ macro(sgl_download_package name url)
1111
FetchContent_Declare(
1212
${name}
1313
URL ${url}
14+
SOURCE_SUBDIR _does_not_exist_ # avoid adding contained CMakeLists.txt
15+
HTTP_HEADER "Authorization: token ${SLANG_GITHUB_TOKEN}"
1416
)
1517
FetchContent_GetProperties(${name})
1618
if(NOT ${name}_POPULATED)
1719
message(STATUS "Populating ${name} ...")
18-
FetchContent_Populate(${name})
20+
FetchContent_MakeAvailable(${name})
1921
endif()
2022
endmacro()
2123

0 commit comments

Comments
 (0)