Skip to content

Commit 6911b6f

Browse files
set CMAKE_FIND_ROOT_PATH_MODE_INCLUDE to BOTH
In scikit-build 0.14.0 -DCMAKE_FIND_PATH_MODE_INCLUDE=ONLY started being set. This breaks working of IntelDPCPP integration with cmake, since find_file starts ignoring specified paths and hints. Setting the value in CMakeLists.txt overrides that value
1 parent 880b0c3 commit 6911b6f

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
@@ -7,6 +7,7 @@ project(dpctl
77

88
set(CMAKE_CXX_STANDARD 17)
99
set(CMAKE_CXX_STANDARD_REQUIRED True)
10+
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE BOTH)
1011

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

0 commit comments

Comments
 (0)