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

Use Ninja multi-config with CMake #4517

Merged
merged 1 commit into from
May 1, 2024

Conversation

ranisalt
Copy link
Member

Pull Request Prelude

Changes Proposed

Issues addressed:

Using Ninja multi-config allows us to build in multiple configurations, such as Debug, RelWithDebInfo and Release.

Currently, one needs to pass the build type prior to generating makefiles, with cmake --preset default -DCMAKE_BUILD_TYPE=<buildtype> followed by cmake --build --preset default, and rebuilding with a different config required regenerating makefiles.

Now, a clearer invocation of cmake is possible with cmake --preset default to generate makefiles, and then cmake --build --preset default --config <buildtype> is possible without regenerating makefiles, and in separate folders so that one can maintain multiple builds (for debugging and running in production, for example)

EPuncker
EPuncker previously approved these changes Oct 1, 2023
EPuncker
EPuncker previously approved these changes Dec 10, 2023
EPuncker
EPuncker previously approved these changes Dec 13, 2023
EPuncker
EPuncker previously approved these changes Apr 27, 2024
- Setup tests dependency install with vcpkg
- Fix preset additional args for run-cmake action
@ranisalt ranisalt merged commit 1fe18ff into otland:master May 1, 2024
18 checks passed
@ranisalt ranisalt deleted the ninja-multi-config branch May 1, 2024 15:36
@ranisalt ranisalt mentioned this pull request May 21, 2024
3 tasks
@ranisalt ranisalt mentioned this pull request Jun 6, 2024
3 tasks
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.

None yet

2 participants