auto-log.cmake 392 B

1234567891011121314
  1. find_package(Git REQUIRED)
  2. include(FetchContent)
  3. set(FETCHCONTENT_BASE_DIR "${CMAKE_CURRENT_BINARY_DIR}/third-party")
  4. FetchContent_Declare(
  5. extern_Autolog
  6. PREFIX autolog
  7. # If you don't have access to github, replace it with https://gitee.com/Double_V/AutoLog
  8. GIT_REPOSITORY https://github.com/LDOUBLEV/AutoLog.git
  9. GIT_TAG main
  10. )
  11. FetchContent_MakeAvailable(extern_Autolog)