Merge pull request #177 from ros2/find_gtest_once

only find GTest once
This commit is contained in:
Dirk Thomas 2017-11-09 16:24:31 -08:00 committed by GitHub
commit ebf6ea1a83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,6 +14,10 @@ set(extra_test_libraries)
set(extra_test_env)
set(extra_lib_dirs "${rcl_lib_dir}")
# finding gtest once in the highest scope
# prevents finding it repeatedly in each local scope
ament_find_gtest()
# This subdirectory extends both extra_test_libraries, extra_test_env, and extra_lib_dirs.
add_subdirectory(memory_tools)