catkin_add_gtest: Drop explicit add_dependencies(), rely on CMake.
@@ -173,9 +173,6 @@ function(_catkin_add_executable_with_google_test type target)
assert(${type_upper}_LIBRARIES)
target_link_libraries(${target} ${${type_upper}_LIBRARIES} ${THREADS_LIBRARY})
-
- # make sure gtest/gmock is built before the target
- add_dependencies(${target} ${${type_upper}_LIBRARIES})
endfunction()
# Internal function for finding gtest or gmock sources
