diff options
author | Brad King <brad.king@kitware.com> | 2021-03-10 16:37:09 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-03-10 16:37:15 (GMT) |
commit | ccfa0852c0a42bb965346b7217edf269587c903c (patch) | |
tree | e1a51ec250d1807bbb25898741f674f801b2285c /Modules/FetchContent/CMakeLists.cmake.in | |
parent | 845c8c72deefe76f768eb71cb3fe1fcca2ed18f8 (diff) | |
parent | 57d442e182bcb9a4426912ed7ba68b58c4dcc940 (diff) | |
download | CMake-ccfa0852c0a42bb965346b7217edf269587c903c.zip CMake-ccfa0852c0a42bb965346b7217edf269587c903c.tar.gz CMake-ccfa0852c0a42bb965346b7217edf269587c903c.tar.bz2 |
Merge topic 'ep-fc-revert-refactoring' into release-3.20
57d442e182 Revert ExternalProject and FetchContent refactoring
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5898
Diffstat (limited to 'Modules/FetchContent/CMakeLists.cmake.in')
-rw-r--r-- | Modules/FetchContent/CMakeLists.cmake.in | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Modules/FetchContent/CMakeLists.cmake.in b/Modules/FetchContent/CMakeLists.cmake.in new file mode 100644 index 0000000..5ebb12f --- /dev/null +++ b/Modules/FetchContent/CMakeLists.cmake.in @@ -0,0 +1,27 @@ +# Distributed under the OSI-approved BSD 3-Clause License. See accompanying +# file Copyright.txt or https://cmake.org/licensing for details. + +cmake_minimum_required(VERSION ${CMAKE_VERSION}) + +# We name the project and the target for the ExternalProject_Add() call +# to something that will highlight to the user what we are working on if +# something goes wrong and an error message is produced. + +project(${contentName}-populate NONE) + +@__FETCHCONTENT_CACHED_INFO@ + +include(ExternalProject) +ExternalProject_Add(${contentName}-populate + ${ARG_EXTRA} + SOURCE_DIR "${ARG_SOURCE_DIR}" + BINARY_DIR "${ARG_BINARY_DIR}" + CONFIGURE_COMMAND "" + BUILD_COMMAND "" + INSTALL_COMMAND "" + TEST_COMMAND "" + USES_TERMINAL_DOWNLOAD YES + USES_TERMINAL_UPDATE YES +) + +@__FETCHCONTENT_COPY_FILE@ |