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

Recommend the simplest possible configuration and build commands #47

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

ChrisThrasher
Copy link
Member

@ChrisThrasher ChrisThrasher commented Jul 13, 2024

Once users wish to start customizing their build by potentially enabling optimizations, then they can learn about such differences. For now it's not useful to add this extra branch in the instructions. Let's keep it simple.

You can use a multi-config generator on Linux and macOS via Ninja-MultiConfig and you can also use a single-config generator on Windows via Clang and Ninja or minGW and Makefiles. It's not reasonable to expect first time CMake users to understand this.

@ChrisThrasher ChrisThrasher force-pushed the simplify_build_instructions branch from 7ab97ea to 1880956 Compare July 13, 2024 21:29
Once users wish to start customizing their build by potentially
enabling optimizations, then they can learn about such differences.
For now it's not useful to add this extra branch in the instructions.
Let's keep it simple.
@ChrisThrasher ChrisThrasher force-pushed the simplify_build_instructions branch from 1880956 to a8638c1 Compare July 13, 2024 21:30
@eXpl0it3r
Copy link
Member

So now they have to install and understand ninja instead of using the default tool chain?

IMHO it's reasonable enough to learn the very basics upfront. Not like knowing source and type is that complicated 😄

@ChrisThrasher
Copy link
Member Author

ChrisThrasher commented Jul 14, 2024

So now they have to install and understand ninja instead of using the default tool chain?

No not at all. Quite the opposite. These commands mean CMake will choose the default toolchain for their platform. On Windows that means MSVC + VS Solutions.

https://github.com/SFML/cmake-sfml-project/actions/runs/9922990212/job/27412660246#step:4:5

We already run these commands in CI. MSVC + MS build is picked.

@ChrisThrasher ChrisThrasher merged commit 814646c into master Jul 30, 2024
20 checks passed
@ChrisThrasher ChrisThrasher deleted the simplify_build_instructions branch July 30, 2024 23:05
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 this pull request may close these issues.

2 participants