explicitly specify build folder for out-of-source subdirectory

This commit is contained in:
Axel Kohlmeyer
2021-09-11 05:59:50 -04:00
parent 68ddab0341
commit bf360ad50f

View File

@ -23,7 +23,7 @@ if(CMAKE_VERSION VERSION_LESS 3.14)
if(_num GREATER 1)
message(FATAL_ERROR "Inconsistent googletest sources. Please delete ${CMAKE_BINARY_DIR}/_deps and re-run cmake")
endif()
add_subdirectory(${GTEST_SOURCE})
add_subdirectory(${GTEST_SOURCE} ${CMAKE_BINARY_DIR}/googletest)
else()
include(FetchContent)
FetchContent_Declare(googletest URL ${GTEST_URL} URL_HASH MD5=${GTEST_MD5})