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

set cmake_minimum_required to 3.22 #1069

Merged
merged 2 commits into from
Jan 7, 2025
Merged

set cmake_minimum_required to 3.22 #1069

merged 2 commits into from
Jan 7, 2025

Conversation

dneto0
Copy link
Collaborator

@dneto0 dneto0 commented Dec 23, 2024

That's the cmake verion included in Ubuntu 2022.04

Change-Id: I5d6da0d33c86eae5020bba1b9a8805fc8d7e7868

@dneto0
Copy link
Collaborator Author

dneto0 commented Jan 6, 2025

The MSVC 2017 configs are invalid now, and have been deleted on the Kokoro config side internal to Google

That's the cmake verion included in Ubuntu 2022.04

Change-Id: I5d6da0d33c86eae5020bba1b9a8805fc8d7e7868
@dneto0
Copy link
Collaborator Author

dneto0 commented Jan 6, 2025

The MSVC failures seem to be related to:

  1. various subprojects manually change /MD to /MT to force static linking for MSVC
  2. Cmake changed how it sets those flags. See https://gitlab.kitware.com/cmake/cmake/-/commit/fb3370b6a1681190ffd8daf63975c44ce8fc1c49

Assume old-style setting of MSVC runtime selection.
See https://cmake.org/cmake/help/latest/policy/CMP0091.html

Set to OLD to allow migration of projects to the new mechanism.

Change-Id: I29f78d11e912924689f5508f1c2d6e72013d2563
@dneto0 dneto0 merged commit 05e8c35 into google:main Jan 7, 2025
13 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