Commit e3515714 authored by Jan Möbius's avatar Jan Möbius

Set library dir also if a prefix is given

git-svn-id: http://www.openvolumemesh.org/svnrepo/OpenVolumeMesh/trunk@117 66977474-1d4b-4f09-8fe9-267525286df2
parent 7d9d0c25
......@@ -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