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

Problem configuring on Windows #2311

Closed
nicola-gigante opened this issue May 23, 2021 · 4 comments
Closed

Problem configuring on Windows #2311

nicola-gigante opened this issue May 23, 2021 · 4 comments

Comments

@nicola-gigante
Copy link

I'm trying to compile libfmt on Windows. I'm using Visual Studio 2019 Community and the cmake provided by the VS installation (3.19).
What I get is the following (very strange) error:

> cmake -DFMT_TEST=NO ..
-- CMake version: 3.19.20122902-MSVC_2
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19042.
-- Version: 7.1.3
-- Build type: Release
-- CXX_STANDARD: 11
-- Required features: cxx_variadic_templates
-- Target 'doc' disabled (requires doxygen)
-- Configuring done
CMake Error at CMakeLists.txt:194 (add_library):
  Cannot find source file:

    README.rst

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
  .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .ispc


CMake Error at CMakeLists.txt:194 (add_library):
  No SOURCES given to target: fmt


CMake Generate step failed.  Build files cannot be regenerated correctly.

Am I doing anything wrong?

@vitaut
Copy link
Contributor

vitaut commented May 23, 2021

Looks like a bug in Microsoft's version of CMake. Have you tried a normal CMake?

@nicola-gigante
Copy link
Author

Just tried now, I get the same error with stock cmake 3.20

@nicola-gigante
Copy link
Author

Ok, I just tried checking out the master branch of fmt (I was using the 7.1.3 stable release) and now it works. So it looks like a bug in the release.

@vitaut vitaut closed this as completed May 24, 2021
@vitaut
Copy link
Contributor

vitaut commented May 24, 2021

Thanks for checking.

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

No branches or pull requests

2 participants