-
Notifications
You must be signed in to change notification settings - Fork 809
Open
Labels
Description
If FETCHCONTENT_FULLY_DISCONNECTED is set, nothing should be trying to use FetchContent anywhere:
llvm/llvm/lib/SYCLNativeCPUUtils/CMakeLists.txt
Lines 35 to 73 in 08a74f9
| if(NATIVECPU_USE_OCK) | |
| if(NATIVECPU_OCK_USE_FETCHCONTENT) | |
| set(OCK_GIT_INTERNAL_REPO "https://github.com/uxlfoundation/oneapi-construction-kit.git") | |
| # commit 652f9943b0bfcf61123a0f82b2bdd499738c5391 | |
| # Merge: c24c971bcb e0f02ae739 | |
| # Author: Colin Davidson <colin.davidson@codeplay.com> | |
| # Date: Fri Feb 28 15:59:50 2025 +0000 | |
| # | |
| # Merge pull request #677 from coldav/colin/build_installed_llvm | |
| # | |
| # Change llvm over to a choice of install or cache, default PRs to install | |
| set(OCK_GIT_INTERNAL_TAG 652f9943b0bfcf61123a0f82b2bdd499738c5391) | |
| # Overwrite OCK_GIT_INTERNAL_REPO/OCK_GIT_INTERNAL_TAG if the corresponding options are set | |
| if(OCK_GIT_REPO) | |
| set(OCK_GIT_INTERNAL_REPO "${OCK_GIT_REPO}") | |
| endif() | |
| if(OCK_GIT_TAG) | |
| set(OCK_GIT_INTERNAL_TAG "${OCK_GIT_TAG}") | |
| endif() | |
| include(FetchContent) | |
| FetchContent_Declare(oneapi-ck | |
| GIT_REPOSITORY "${OCK_GIT_INTERNAL_REPO}" | |
| GIT_TAG "${OCK_GIT_INTERNAL_TAG}" | |
| ) | |
| FetchContent_GetProperties(oneapi-ck) | |
| if(NOT oneapi-ck_POPULATED) | |
| message(STATUS "Cloning oneAPI Construction Kit from ${OCK_GIT_INTERNAL_REPO}, tag ${OCK_GIT_INTERNAL_TAG}") | |
| FetchContent_Populate(oneapi-ck) | |
| message(STATUS "oneAPI Construction Kit cloned in ${oneapi-ck_SOURCE_DIR}") | |
| set(OCK_SOURCE_DIR_INTERNAL ${oneapi-ck_SOURCE_DIR}/compiler_passes) | |
| set(OCK_BINARY_DIR_INTERNAL ${oneapi-ck_BINARY_DIR}) | |
| endif() | |
| elseif(OCK_SOURCE_DIR) | |
| set(OCK_SOURCE_DIR_INTERNAL "${OCK_SOURCE_DIR}/compiler_passes") | |
| set(OCK_BINARY_DIR_INTERNAL "${CMAKE_CURRENT_BINARY_DIR}/oneapi-construction-kit") | |
| else() | |
| message(FATAL_ERROR "NATIVECPU_OCK_USE_FETCHCONTENT is Off and OCK_SOURCE_DIR not set") | |
| endif() |
AlexeySachkov