Commit 6275b7e1 authored by Jan Möbius's avatar Jan Möbius

Set gtest dir also if prefix is given.

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@538 fdac6126-5c0c-442c-9429-916003d36597
parent b808c102
......@@ -35,6 +35,10 @@ else(GTEST_INCLUDE_DIRS AND GTEST_LIBRARIES AND GTEST_MAIN_LIBRARIES)
find_library(_GTEST_MAIN_LIBRARY gtest_main
PATHS "${GTEST_PREFIX}/lib"
NO_DEFAULT_PATH)
if ( _GTEST_LIBRARY )
get_filename_component(_GTEST_LIBRARY_DIR ${_GTEST_LIBRARY} PATH CACHE )
endif()
else(GTEST_PREFIX)
find_path(_GTEST_INCLUDE_DIR "gtest/gtest.h"
PATHS
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment