Skip to content

Commit 427caf0

Browse files
authored
GH-47440: [C++] Accept gflags::gflags as system gflags CMake target (#47468)
### Rationale for this change MSYS2's gflags package always uses `gflags::gflags` not `gflags::gflags_shared`. ### What changes are included in this PR? Check `gflags::gflags`. ### Are these changes tested? Yes. ### Are there any user-facing changes? Yes. * GitHub Issue: #47440 Authored-by: Sutou Kouhei <[email protected]> Signed-off-by: Raúl Cumplido <[email protected]>
1 parent 084a365 commit 427caf0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cpp/cmake_modules/ThirdpartyToolchain.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1723,6 +1723,8 @@ if(ARROW_NEED_GFLAGS)
17231723
set(GFLAGS_LIBRARIES gflags-shared)
17241724
elseif(TARGET gflags_shared)
17251725
set(GFLAGS_LIBRARIES gflags_shared)
1726+
elseif(TARGET gflags::gflags)
1727+
set(GFLAGS_LIBRARIES gflags::gflags)
17261728
endif()
17271729
endif()
17281730
endif()

0 commit comments

Comments
 (0)