Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not possible to fetch fmt with CMake #4011

Closed
asamitov opened this issue Jun 12, 2024 · 2 comments · Fixed by #4013
Closed

Not possible to fetch fmt with CMake #4011

asamitov opened this issue Jun 12, 2024 · 2 comments · Fixed by #4013

Comments

@asamitov
Copy link

After #3998 fetching fmt with CMake fails with the following error:

CMake Error at build_/_deps/fmt-src/CMakeLists.txt:407 (install):
install TARGETS given unknown argument "FILE_SET".

CMake section to reproduce

 FetchContent_Declare(fmt
        GIT_REPOSITORY https://github.com/fmtlib/fmt.git
        GIT_TAG master
    )
 FetchContent_MakeAvailable(fmt)
@vitaut
Copy link
Contributor

vitaut commented Jun 12, 2024

I think we should guard FILE_SET with a CMake version check. cc @yujincheng08.

@rtiangha
Copy link

Same here. This came from a build bot using cmake 3.22.1-g37088a8.

  CMake Error at externals/fmt/CMakeLists.txt:407 (install):
    install TARGETS given unknown argument "FILE_SET".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants