mirror of
https://github.com/google/googletest.git
synced 2025-01-14 00:20:57 +08:00
Fixes build failure on Windows/CMake (issue 111).
This commit is contained in:
parent
ab5b77c179
commit
0a781df32a
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user