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

CMake: Add SPDLOG_STATIC_VCRT to choose static MSVC runtime #1860

Merged
merged 1 commit into from
Mar 4, 2021
Merged

CMake: Add SPDLOG_STATIC_VCRT to choose static MSVC runtime #1860

merged 1 commit into from
Mar 4, 2021

Conversation

rofferom
Copy link
Contributor

@rofferom rofferom commented Mar 4, 2021

This PR simply adds a flag for Windows build to change the target runtime (/MT//MD).

The naming comes from SDL2's cmake: https://github.com/libsdl-org/SDL/blob/main/CMakeLists.txt#L226.

I based my tests with this doc: https://stackoverflow.com/a/19487637.

@gabime gabime merged commit 2ffbbee into gabime:v1.x Mar 4, 2021
@gabime
Copy link
Owner

gabime commented Mar 4, 2021

Thanks! Merged

gabime pushed a commit that referenced this pull request Mar 4, 2021
@gabime
Copy link
Owner

gabime commented Mar 4, 2021

@rofferom Needed to revert. Apparently it breaks builds with CMake versions prior to 3.15

@rofferom
Copy link
Contributor Author

rofferom commented Mar 4, 2021

Woops, I'll check how to update the patch. What is the minimum cmake version you target ?

@gabime
Copy link
Owner

gabime commented Mar 5, 2021

3.10

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