Skip to content

Commit 877a36e

Browse files
committed
fix includes for umf_test_mocks and umf_ze_loopback
1 parent a6e456e commit 877a36e

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

test/common/CMakeLists.txt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,10 @@ if(UMF_BUILD_LEVEL_ZERO_PROVIDER)
2525
add_library(umf_test_mocks STATIC level_zero_mocks.cpp)
2626
target_link_libraries(umf_test_mocks GTest::gmock umf_utils)
2727
target_include_directories(
28-
umf_test_mocks
29-
PRIVATE ${UMF_CMAKE_SOURCE_DIR}/include ${UMF_CMAKE_SOURCE_DIR}/src
30-
${UMF_CMAKE_SOURCE_DIR}/src/utils ${LEVEL_ZERO_INCLUDE_DIRS})
28+
umf_test_mocks PUBLIC ${UMF_CMAKE_SOURCE_DIR}/include ${UMF_SRC_DIR}
29+
${UMF_UTILS_DIR} ${LEVEL_ZERO_INCLUDE_DIRS})
3130

3231
add_library(umf_ze_loopback SHARED ze_loopback.h ze_loopback.cpp)
33-
target_include_directories(
34-
umf_ze_loopback PRIVATE ${LEVEL_ZERO_INCLUDE_DIRS} ${UMF_UTILS_DIR}
35-
${UMF_SRC_DIR} ${UMF_CMAKE_SOURCE_DIR}/include)
32+
target_include_directories(umf_ze_loopback
33+
PUBLIC ${LEVEL_ZERO_INCLUDE_DIRS})
3634
endif()

test/common/level_zero_mocks.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#ifndef UMF_TEST_PROVIDER_LEVEL_ZERO_MOCKS_H
1111
#define UMF_TEST_PROVIDER_LEVEL_ZERO_MOCKS_H
1212

13-
#include "utils/utils_log.h"
13+
#include "utils_log.h"
1414
#include "ze_loopback.h"
1515
#include <gmock/gmock.h>
1616
#include <vector>

0 commit comments

Comments
 (0)