Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
CMake
CMake
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 2,690
    • Issues 2,690
    • List
    • Boards
    • Labels
    • Milestones
  • Merge Requests 26
    • Merge Requests 26
  • Packages
    • Packages
    • Container Registry
  • External Wiki
    • External Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Commits
  • Issue Boards
  • CMake
  • CMakeCMake
  • Issues
  • #18238

Closed
Open
Opened Aug 03, 2018 by Elias Daler@eliasdaler
  • Report abuse
  • New issue
Report abuse New issue

FetchContent + GIT_PROGRESS?

Hello. Recently, I've tried to do this:

FetchContent_Declare(
    fmt
    GIT_REPOSITORY https://github.com/fmtlib/fmt
    GIT_TAG        5.1.0
    GIT_PROGRESS   TRUE
)

But unfortunately, it doesn't show any progress from Git when populating. So I've tried (a bit later in the code after FetchContent_Declare above):

FetchContent_Populate(
    fmt
    GIT_PROGRESS   TRUE
)

but this is what I get:


   /home/user/build/Debug/fmt-src

  is not an existing non-empty directory.  Please specify one of:

   * SOURCE_DIR with an existing non-empty directory
   * DOWNLOAD_COMMAND
   * URL
   * GIT_REPOSITORY
   * SVN_REPOSITORY
   * HG_REPOSITORY
   * CVS_REPOSITORY and CVS_MODULE
...

The only way to get git progress was to put GIT_TAG and GIT_REPOSITORY into FetchContent_Populate. But it's already specified in FetchContent_Declare. What can I do to not copy-paste?

Edited Aug 03, 2018 by Elias Daler
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
0
Labels
None
Assign labels
  • View project labels
Reference: cmake/cmake#18238