Change 'populating' messages; use shallow clone

This commit is contained in:
Peter Dimov
2018-09-30 04:13:52 +03:00
parent 432d369ee7
commit 4e8943bc38

View File

@@ -25,18 +25,18 @@ if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
# requires CMake 3.11 so we just carry it around
include(cmake/FetchContent.cmake)
message("-- Populating boost_config")
FetchContent_Populate(boost_config QUIET GIT_REPOSITORY https://github.com/boostorg/config GIT_TAG develop)
message("-- Fetching pdimov/mincmake")
FetchContent_Populate(mincmake QUIET GIT_REPOSITORY https://github.com/pdimov/mincmake GIT_TAG master GIT_SHALLOW 1)
include(${mincmake_SOURCE_DIR}/cmake/boost_test.cmake)
message("-- Fetching boostorg/config")
FetchContent_Populate(boost_config QUIET GIT_REPOSITORY https://github.com/boostorg/config GIT_TAG develop GIT_SHALLOW 1)
add_subdirectory(${boost_config_SOURCE_DIR} ${boost_config_BINARY_DIR})
message("-- Populating boost_core")
FetchContent_Populate(boost_core QUIET GIT_REPOSITORY https://github.com/boostorg/core GIT_TAG develop)
message("-- Fetching boostorg/core")
FetchContent_Populate(boost_core QUIET GIT_REPOSITORY https://github.com/boostorg/core GIT_TAG develop GIT_SHALLOW 1)
add_subdirectory(${boost_core_SOURCE_DIR} ${boost_core_BINARY_DIR})
message("-- Populating mincmake")
FetchContent_Populate(mincmake QUIET GIT_REPOSITORY https://github.com/pdimov/mincmake GIT_TAG master)
include(${mincmake_SOURCE_DIR}/cmake/boost_test.cmake)
enable_testing()
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure -C $<CONFIG>)