diff --git a/.github/workflows/code_snippets.yml b/.github/workflows/code_snippets.yml index fd7aa736cb0..783202d1c90 100644 --- a/.github/workflows/code_snippets.yml +++ b/.github/workflows/code_snippets.yml @@ -30,6 +30,13 @@ jobs: submodules: recursive lfs: true + - name: Install OpenCL + uses: awalsh128/cache-apt-pkgs-action@v1.2.4 + if: runner.os == 'Linux' + with: + packages: ocl-icd-opencl-dev opencl-headers + version: 3.0 + - name: CMake configure run: cmake -DCMAKE_BUILD_TYPE=Release -B build diff --git a/docs/snippets/CMakeLists.txt b/docs/snippets/CMakeLists.txt index 1ea7ec59c20..7ce9a2c6806 100644 --- a/docs/snippets/CMakeLists.txt +++ b/docs/snippets/CMakeLists.txt @@ -47,10 +47,6 @@ list(REMOVE_ITEM SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/dldt_optimization_guide2.c "${CMAKE_CURRENT_SOURCE_DIR}/dldt_optimization_guide3.cpp" "${CMAKE_CURRENT_SOURCE_DIR}/dldt_optimization_guide4.cpp") -# build separatelly as ov_integration_snippet and ov_integration_snippet_c -list(REMOVE_ITEM SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/src/main.c" - "${CMAKE_CURRENT_SOURCE_DIR}/src/main.cpp") - # create a static library add_library(${TARGET_NAME} STATIC ${SOURCES}) diff --git a/thirdparty/CMakeLists.txt b/thirdparty/CMakeLists.txt index 2870bb74d21..e8c76e0b007 100644 --- a/thirdparty/CMakeLists.txt +++ b/thirdparty/CMakeLists.txt @@ -96,7 +96,8 @@ if(ENABLE_INTEL_GPU) endif() if(SUGGEST_OVERRIDE_SUPPORTED) - set_target_properties(${opencl_target} PROPERTIES INTERFACE_COMPILE_OPTIONS "-Wno-suggest-override") + set_target_properties(${opencl_target} PROPERTIES INTERFACE_COMPILE_OPTIONS + $<$:-Wno-suggest-override>) endif() # used in tests