applied patch from #3275

This commit is contained in:
Brian Gerkey 2011-01-25 16:15:10 +00:00
parent a29ee6ef62
commit 2044518023
1 changed files with 1 additions and 1 deletions

View File

@ -411,7 +411,7 @@ macro(rosbuild_init)
# Gather the gtest build flags, for use when building unit tests. We
# don't require the user to declare a dependency on gtest.
#
find_program(GTEST_EXE NAMES gtest-config DOC "gtest-config executable")
find_program(GTEST_EXE NAMES gtest-config DOC "gtest-config executable" ONLY_CMAKE_FIND_ROOT_PATH)
if (NOT GTEST_EXE)
set(_gtest_LIBRARIES -lgtest)
# Couldn't find gtest-config. Hoping that gtest is in our path either in the system install or where ROS_BINDEPS points to