Skip to content

Commit 64845fd

Browse files
authored
Apply suggestions from code review
1 parent 654937b commit 64845fd

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

cpp/cmake_modules/ThirdpartyToolchain.cmake

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2871,9 +2871,7 @@ function(build_re2)
28712871
# in anonymous unions (a compiler extension).
28722872
# See: https://github.com/apache/arrow/issues/48973
28732873
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
2874-
if(TARGET re2)
2875-
target_compile_options(re2 PRIVATE -Wno-nested-anon-types)
2876-
endif()
2874+
target_compile_options(re2 PRIVATE -Wno-nested-anon-types)
28772875
endif()
28782876

28792877
if(CMAKE_VERSION VERSION_LESS 3.28)

0 commit comments

Comments
 (0)