Skip to content

Change minimum CMake version to 3.7.2.#23134

Merged
BillyONeal merged 2 commits intomicrosoft:masterfrom
BillyONeal:min-cmake-version
Feb 17, 2022
Merged

Change minimum CMake version to 3.7.2.#23134
BillyONeal merged 2 commits intomicrosoft:masterfrom
BillyONeal:min-cmake-version

Conversation

@BillyONeal
Copy link
Copy Markdown
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 category:infrastructure Pertaining to the CI/Testing infrastrucutre labels Feb 16, 2022
Copy link
Copy Markdown

@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.

Details

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

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown

@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.

Details

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
Copy Markdown
Contributor

cc @Neumann-A

# this policy is required for this file; thus, CMake 3.1 is required.
cmake_policy(PUSH)
cmake_policy(SET CMP0054 NEW)
cmake_policy(VERSION 3.7.2)
Copy link
Copy Markdown
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants