Skip to content

Commit d8fc8dc

Browse files
Set CMAKE_FIND_ROOT_PATH_MODE_LIBRARY to BOTH too
This is to ensure that find_library can find libpi_level_zero and libpi_opencl
1 parent fdf7835 commit d8fc8dc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ project(dpctl
88
set(CMAKE_CXX_STANDARD 17)
99
set(CMAKE_CXX_STANDARD_REQUIRED True)
1010
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE BOTH)
11+
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY BOTH)
1112

1213
# Option to generate code coverage report using llvm-cov and lcov.
1314
option(DPCTL_GENERATE_COVERAGE

0 commit comments

Comments
 (0)