Skip to content

Commit 674f4e2

Browse files
committed
Fix hwloc patch application on windows
Windows `cmd.exe` doesn't have a `true` command, `(exit 0)` will do the same thing but it will work on both linux and windows. This issue only shows up on Windows and not on a first build, since when building the first time the patch applies cleanly so the `||` branch is not taken, but then when rebuilding the patch doens't apply and the command errors out in the `||` branch.
1 parent ae5ad2e commit 674f4e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ else()
135135
apply
136136
${PROJECT_SOURCE_DIR}/cmake/fix_coverity_issues.patch
137137
||
138-
true)
138+
(exit 0))
139139

140140
message(
141141
STATUS
@@ -165,7 +165,7 @@ else()
165165
apply
166166
${PROJECT_SOURCE_DIR}/cmake/fix_coverity_issues.patch
167167
||
168-
true)
168+
(exit 0))
169169

170170
message(
171171
STATUS

0 commit comments

Comments
 (0)