Skip to content

Commit 1852102

Browse files
committed
[SYCL] Fix build in clean environment
Fix issues discovered in #4773
1 parent 701e480 commit 1852102

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

devops/containers/ubuntu2004_base.Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ RUN apt update && apt install -yqq \
88
ninja-build \
99
ccache \
1010
git \
11-
python3
11+
python3 \
12+
python3-distutils

xptifw/CMakeLists.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ option(XPTI_ENABLE_TBB "Enable TBB in the framework" OFF)
1515

1616
option(XPTI_ENABLE_WERROR OFF)
1717

18+
option(XPTI_BUILD_SAMPLES OFF)
19+
1820
if (XPTI_ENABLE_WERROR)
1921
if(MSVC)
2022
set(CMAKE_CXX_FLAGS "/WX ${CMAKE_CXX_FLAGS}")
@@ -53,8 +55,10 @@ add_subdirectory(src)
5355
add_custom_target(check-xptifw)
5456

5557
add_subdirectory(unit_test)
56-
add_subdirectory(samples/basic_collector)
57-
add_subdirectory(samples/syclpi_collector)
58+
if (XPTI_BUILD_SAMPLES)
59+
add_subdirectory(samples/basic_collector)
60+
add_subdirectory(samples/syclpi_collector)
61+
endif()
5862

5963
# The tests in basic_test are written using TBB, so these tests are enabled
6064
# only if TBB has been enabled.

0 commit comments

Comments
 (0)