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

Change minimum CMake version to 3.7.2. #23134

Merged
merged 2 commits into from
Feb 17, 2022

Conversation

BillyONeal
Copy link
Member

This moves our oldest supported Linux back up to today minus 5 years, Debian 9 from 2017 comes with 3.7.2.

See #19048

This moves our oldest supported Linux back up to today minus 5 years, Debian 9 from 2017 comes with 3.7.2.
@BillyONeal BillyONeal added category:documentation To resolve the issue, documentation will need to be updated info:internal This PR or Issue was filed by the vcpkg team. category:infrastructure Pertaining to the CI/Testing infrastrucutre labels Feb 16, 2022
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

You have modified or added at least one vcpkg.json where a "license" field is missing.

If you feel able to do so, please consider adding a "license" field to the following files:

  • ports/faad2/vcpkg.json

Valid values for the license field can be found in the documentation

if(CMAKE_VERSION VERSION_LESS Z_VCPKG_CMAKE_REQUIRED_MINIMUM_VERSION)
message(FATAL_ERROR "vcpkg.cmake requires at least CMake ${Z_VCPKG_CMAKE_REQUIRED_MINIMUM_VERSION}.")
endif()
# this policy is required for this file; thus, CMake 3.1 is required.
# this policy is required for this file; thus, CMake 3.7.2 is required.
Copy link
Contributor

Choose a reason for hiding this comment

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

CMP0054 came with CMake 3.1 so it doesn't require 3.7.2

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point. I think I should strip the whole comment?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes.

Maybe the lines before and after can be reduced to:

cmake_policy(VERSION 3.7.2)

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

You have modified or added at least one vcpkg.json where a "license" field is missing.

If you feel able to do so, please consider adding a "license" field to the following files:

  • ports/faad2/vcpkg.json

Valid values for the license field can be found in the documentation

BillyONeal added a commit to BillyONeal/vcpkg that referenced this pull request Feb 16, 2022
* set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY) when linking arm64ec static to workaround softintrin as explained in the comment.
* Switch to using the _INIT versions of flags now that we require CMake >= 3.7 (as of microsoft#23134 )
@JackBoosY
Copy link
Contributor

cc @Neumann-A

cmake_policy(PUSH)
cmake_policy(SET CMP0054 NEW)
cmake_policy(VERSION 3.7.2)
Copy link
Contributor

Choose a reason for hiding this comment

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

Now I would even suggest cmake_policy(VERSION ${Z_VCPKG_CMAKE_REQUIRED_MINIMUM_VERSION}).

@BillyONeal BillyONeal merged commit 805811e into microsoft:master Feb 17, 2022
@BillyONeal BillyONeal deleted the min-cmake-version branch February 17, 2022 18:47
Jimmy-Hu added a commit to Jimmy-Hu/vcpkg that referenced this pull request Feb 17, 2022
Change minimum CMake version to 3.7.2. (microsoft#23134)
ras0219-msft added a commit to ras0219-msft/vcpkg that referenced this pull request Feb 18, 2022
ras0219-msft added a commit that referenced this pull request Feb 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:documentation To resolve the issue, documentation will need to be updated category:infrastructure Pertaining to the CI/Testing infrastrucutre info:internal This PR or Issue was filed by the vcpkg team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants