kou opened a new issue, #38339:
URL: https://github.com/apache/arrow/issues/38339

   ### Describe the enhancement requested
   
   Our bundled GoogleTest is built with `FetchContent`. It uses targets 
configured by GoogleTest's CMake directly. They have transitive dependencies 
(`target_link_libraries(gtest_main PUBLIC gtest)`). So we don't need to link 
`gtest_main` and `gtest`. We just need to use `gest_main`. `gtest` is also 
linked automatically.
   
   But GoogleTest related targets found by CMake's `FindGTest.cmake` don't have 
transitive dependencies. So we need to link `gtest_main` and `gtest` 
explicitly. If we set transitive dependencies to GoogleTest related targets 
found by CMake's `FindGTest.cmake`, we can simplify our link targets.
   
   ### Component(s)
   
   C++


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to