Fixed unittest directory check to look in the source directory

This commit is contained in:
Anna Gringauze 2015-08-25 11:29:49 -07:00
parent 8a38a411ca
commit 5e945461c9

View File

@ -26,7 +26,7 @@ else()
endif() endif()
endif() endif()
if (NOT EXISTS tests/unittest-cpp) if (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/unittest-cpp)
message(FATAL_ERROR "Could not find unittest-cpp enlistment. Please run 'git clone https://github.com/Microsoft/unittest-cpp.git unittest-cpp' in the tests directory") message(FATAL_ERROR "Could not find unittest-cpp enlistment. Please run 'git clone https://github.com/Microsoft/unittest-cpp.git unittest-cpp' in the tests directory")
endif() endif()