Skip to content

Commit b73a8d9

Browse files
author
Alexander Strack
committed
Set target platform for OpenMP preset
1 parent 61488ca commit b73a8d9

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

cmake/presets/openmp.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"displayName": "OpenMP backend",
88
"inherits": "build",
99
"cacheVariables": {
10-
"PLSSVM_ENABLE_OPENMP_BACKEND": "ON"
10+
"PLSSVM_ENABLE_OPENMP_BACKEND": "ON",
11+
"PLSSVM_TARGET_PLATFORMS": "cpu"
1112
}
1213
},
1314
{
@@ -16,6 +17,7 @@
1617
"inherits": "build",
1718
"cacheVariables": {
1819
"PLSSVM_ENABLE_OPENMP_BACKEND": "ON",
20+
"PLSSVM_TARGET_PLATFORMS": "cpu",
1921
"PLSSVM_ENABLE_LANGUAGE_BINDINGS": "ON",
2022
"PLSSVM_ENABLE_PYTHON_BINDINGS": "ON"
2123
}
@@ -25,7 +27,8 @@
2527
"displayName": "OpenMP backend tests",
2628
"inherits": "test",
2729
"cacheVariables": {
28-
"PLSSVM_ENABLE_OPENMP_BACKEND": "ON"
30+
"PLSSVM_ENABLE_OPENMP_BACKEND": "ON",
31+
"PLSSVM_TARGET_PLATFORMS": "cpu"
2932
}
3033
}
3134
],
@@ -137,4 +140,4 @@
137140
]
138141
}
139142
]
140-
}
143+
}

0 commit comments

Comments
 (0)