Skip to content

Commit 0382d8b

Browse files
authored
Apply absl cuda warning patch to othe OS (#27126)
Fix #27125 It does fix the build issue on Linux, but I am not entirely sure whether this is the optimal fix.
1 parent 727db0d commit 0382d8b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

cmake/external/abseil-cpp.cmake

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,13 @@ else()
2020
endif()
2121
endif()
2222

23-
if(Patch_FOUND AND WIN32)
24-
set(ABSL_PATCH_COMMAND ${Patch_EXECUTABLE} --binary --ignore-whitespace -p1 < ${PROJECT_SOURCE_DIR}/patches/abseil/absl_windows.patch &&
25-
${Patch_EXECUTABLE} --binary --ignore-whitespace -p1 < ${PROJECT_SOURCE_DIR}/patches/abseil/absl_cuda_warnings.patch)
23+
if(Patch_FOUND)
24+
if (WIN32)
25+
set(ABSL_PATCH_COMMAND ${Patch_EXECUTABLE} --binary --ignore-whitespace -p1 < ${PROJECT_SOURCE_DIR}/patches/abseil/absl_windows.patch &&
26+
${Patch_EXECUTABLE} --binary --ignore-whitespace -p1 < ${PROJECT_SOURCE_DIR}/patches/abseil/absl_cuda_warnings.patch)
27+
else()
28+
set(ABSL_PATCH_COMMAND ${Patch_EXECUTABLE} --binary --ignore-whitespace -p1 < ${PROJECT_SOURCE_DIR}/patches/abseil/absl_cuda_warnings.patch)
29+
endif()
2630
else()
2731
set(ABSL_PATCH_COMMAND "")
2832
endif()

0 commit comments

Comments
 (0)