CMakeLists.cmake.in 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. # file Copyright.txt or https://cmake.org/licensing for details.
  3. cmake_minimum_required(VERSION @CMAKE_VERSION@)
  4. # Reject any attempt to use a toolchain file. We must not use one because
  5. # we could be downloading it here. If the CMAKE_TOOLCHAIN_FILE environment
  6. # variable is set, the cache variable will have been initialized from it.
  7. unset(CMAKE_TOOLCHAIN_FILE CACHE)
  8. unset(ENV{CMAKE_TOOLCHAIN_FILE})
  9. # We name the project and the target for the ExternalProject_Add() call
  10. # to something that will highlight to the user what we are working on if
  11. # something goes wrong and an error message is produced.
  12. project(@contentName@-populate NONE)
  13. @__FETCHCONTENT_CACHED_INFO@
  14. include(ExternalProject)
  15. ExternalProject_Add(@contentName@-populate
  16. @ARG_EXTRA@
  17. SOURCE_DIR "@ARG_SOURCE_DIR@"
  18. BINARY_DIR "@ARG_BINARY_DIR@"
  19. CONFIGURE_COMMAND ""
  20. BUILD_COMMAND ""
  21. INSTALL_COMMAND ""
  22. TEST_COMMAND ""
  23. USES_TERMINAL_DOWNLOAD YES
  24. USES_TERMINAL_UPDATE YES
  25. USES_TERMINAL_PATCH YES
  26. )
  27. @__FETCHCONTENT_COPY_FILE@