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

Increase Cmake minimum version to allow using CMAKE_MSVC_RUNTIME_LIBRARY flag #509

Merged
merged 1 commit into from
Nov 24, 2024

Conversation

PolarGoose
Copy link
Contributor

In Cmake 3.15 introduces CMAKE_MSVC_RUNTIME_LIBRARY
https://cmake.org/cmake/help/latest/variable/CMAKE_MSVC_RUNTIME_LIBRARY.html
This flag is very useful to build a static binary on Windows by using CMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded

@PolarGoose PolarGoose changed the title Increase the Cmake minimum version to allow using CMAKE_MSVC_RUNTIME_LIBRARY flag Increase Cmake minimum version to allow using CMAKE_MSVC_RUNTIME_LIBRARY flag Nov 23, 2024
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.12)
cmake_minimum_required(VERSION 3.15)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How do you use CMAKE_MSVC_RUNTIME_LIBRARY? I'm not against increasing, but it's strange to increase it for something that is not used anywhere in the build files.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will be needed for this issue: Pre-built release binaries? #379
Currently it is used in my repo that produces a Windows binary: re2c-for-Windows/build.ps1

@skvadrik skvadrik merged commit 162b9c5 into skvadrik:master Nov 24, 2024
16 checks passed
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