Fixes build failure on Windows/CMake (issue 111).

This commit is contained in:
vladlosev 2010-05-20 22:17:28 +00:00
parent ab5b77c179
commit 0a781df32a

View File

@ -20,7 +20,7 @@ set(BUILD_SHARED_LIBS OFF)
option(gmock_build_tests "Build all of Google Mock's own tests." OFF)
# A directory to find Google Test sources.
if (EXISTS gtest/CMakeLists.txt)
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/gtest/CMakeLists.txt")
set(gtest_dir gtest)
else()
set(gtest_dir ../gtest)