-
Notifications
You must be signed in to change notification settings - Fork 389
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
cmake --build build/test --target format
not working
#119
Comments
@mscofield0 the |
Yeah, here it is:
Also, I forgot to mention that I added the |
That's strange, unfortunately I don't have much knowledge in MSVC, so it's hard to say why the project file doesn't exist. Does the error also occur if you create a fresh build of the # delete build_all if it exists
cmake -S all -B build_all
cmake --build build_all --target format May I ask why you added Format.cmake it to the standalone project? |
Huh, that works. May I ask why it doesn't work on
No specific reason, I was new to the template so I wanted to play around with it. |
Yeah, that is strange indeed. It should still work assuming that you didn't remove the Format.cmake target from the source there. What happens if you build the format target on the tests after a fresh clone of the template?
Gotcha. Just FYI the idea of the Format target is to be run alongside the test suite and it will check the whole codebase committed to Git. As it isn't needed to build the standalone target, it makes most sense to be left alongside the tests. |
Really can't tell what the issue might be...
Oh, that makes sense. Thanks for the clarification. |
Yeah, that's indeed very strange, the same command sequence works on my Mac without issues. I think this might be an issue with CMake, which version are you on? Unfortunately, I don't have access to a windows machine to explore this myself. |
I'm on CMake 3.20.0, which is the latest one. |
This might be an important information, but the executable is in |
I've installed all that the documentation said is required:
However,
cmake --build build/standalone --target format
works.The text was updated successfully, but these errors were encountered: