File tree Expand file tree Collapse file tree 3 files changed +19
-14
lines changed
Expand file tree Collapse file tree 3 files changed +19
-14
lines changed Original file line number Diff line number Diff line change 4848 install_tbb : ' ON'
4949 disable_hwloc : ' OFF'
5050 link_hwloc_statically : ' OFF'
51- cmake_ver : ' latest '
51+ cmake_ver : ' 3.29.0 '
5252 - os : ' ubuntu-24.04'
5353 build_type : Debug
5454 compiler : {c: gcc, cxx: g++}
Original file line number Diff line number Diff line change 6464 - name : Run codespell
6565 run : python3 ./.github/scripts/run-codespell.py
6666
67- - name : Check spelling in docs
68- run : |
69- cmake -B build
70- cmake --build build --target docs
71- sphinx-build -b spelling ./build/docs_build/config ./build/docs_build/spelling_log -W
72-
7367 # Run Bandit recursively, but omit _deps directory (with 3rd party code) and python's venv
7468 - name : Run Bandit
7569 run : python3 -m bandit -r . -x '/_deps/,/.venv/'
Original file line number Diff line number Diff line change @@ -412,13 +412,24 @@ if(UMF_BUILD_LEVEL_ZERO_PROVIDER)
412412
413413 message (STATUS "Fetching Level Zero loader (${LEVEL_ZERO_LOADER_TAG} ) "
414414 "from ${LEVEL_ZERO_LOADER_REPO} ..." )
415- FetchContent_Declare(
416- level-zero-loader
417- GIT_REPOSITORY ${LEVEL_ZERO_LOADER_REPO}
418- GIT_TAG ${LEVEL_ZERO_LOADER_TAG}
419- EXCLUDE_FROM_ALL )
420- # Only populate the repo - we don't need to build it
421- FetchContent_Populate(level-zero-loader)
415+
416+ # We don't want to build and include Level Zero binaries to our install
417+ # target. For CMake >= 3.28 we could use EXCLUDE_FROM_ALL flag to do
418+ # that, but for older versions we need to use FetchContent_Populate
419+ if (CMAKE_VERSION VERSION_LESS 3.28)
420+ FetchContent_Declare(
421+ level-zero-loader
422+ GIT_REPOSITORY ${LEVEL_ZERO_LOADER_REPO}
423+ GIT_TAG ${LEVEL_ZERO_LOADER_TAG} )
424+ FetchContent_Populate(level-zero-loader)
425+ else ()
426+ FetchContent_Declare(
427+ level-zero-loader
428+ GIT_REPOSITORY ${LEVEL_ZERO_LOADER_REPO}
429+ GIT_TAG ${LEVEL_ZERO_LOADER_TAG}
430+ EXCLUDE_FROM_ALL )
431+ FetchContent_MakeAvailable(level-zero-loader)
432+ endif ()
422433
423434 set (LEVEL_ZERO_INCLUDE_DIRS
424435 ${level-zero-loader_SOURCE_DIR}/include
You can’t perform that action at this time.
0 commit comments