From 226226a8772237d1872c73963653da4c6926111e Mon Sep 17 00:00:00 2001 From: Igor Venevtsev Date: Fri, 15 Oct 2021 18:50:00 +0000 Subject: [PATCH] Fix IGC includes Signed-off-by: Igor Venevtsev --- level_zero/CMakeLists.txt | 2 ++ opencl/source/dll/CMakeLists.txt | 1 + shared/test/common/libult/CMakeLists.txt | 1 + 3 files changed, 4 insertions(+) diff --git a/level_zero/CMakeLists.txt b/level_zero/CMakeLists.txt index 35d80b0701..d9af41a5ae 100644 --- a/level_zero/CMakeLists.txt +++ b/level_zero/CMakeLists.txt @@ -305,6 +305,8 @@ if(BUILD_WITH_L0) ${COMPUTE_RUNTIME_DEFINITIONS} ) + target_include_directories(${TARGET_NAME_L0} PRIVATE ${IGC_COMMON_PARENT_DIR}) + if(UNIX) target_sources(${TARGET_NAME_L0} PRIVATE diff --git a/opencl/source/dll/CMakeLists.txt b/opencl/source/dll/CMakeLists.txt index 28be6938b1..3fb35ff644 100644 --- a/opencl/source/dll/CMakeLists.txt +++ b/opencl/source/dll/CMakeLists.txt @@ -70,6 +70,7 @@ if(NOT DISABLE_WDDM_LINUX) ) endif() +target_include_directories(${NEO_DYNAMIC_LIB_NAME} PRIVATE ${IGC_COMMON_PARENT_DIR}) target_sources(${NEO_DYNAMIC_LIB_NAME} PRIVATE ${RUNTIME_SRCS_DLL_BASE}) if(WIN32) if(DEFINED NEO_DLL_RC_FILE) diff --git a/shared/test/common/libult/CMakeLists.txt b/shared/test/common/libult/CMakeLists.txt index b2cec64935..bd3d79c6c5 100644 --- a/shared/test/common/libult/CMakeLists.txt +++ b/shared/test/common/libult/CMakeLists.txt @@ -106,6 +106,7 @@ add_library(igdrcl_libult_common OBJECT EXCLUDE_FROM_ALL target_include_directories(igdrcl_libult_common PRIVATE $ ${SOURCE_LEVEL_DEBUGGER_HEADERS_DIR} + ${IGC_COMMON_PARENT_DIR} ) set_target_properties(igdrcl_libult_common PROPERTIES POSITION_INDEPENDENT_CODE ON)