Skip to content
3 changes: 3 additions & 0 deletions src/native/libs/System.Globalization.Native/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Required for StaticICULinking
cmake_minimum_required(VERSION 3.16...3.20)
Copy link
Member

Choose a reason for hiding this comment

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

What happens when we have > 3.20 installed? Do we want to restrict on max value or can it just be set to 3.16 minimum?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you are right.
limiting the max version is probably not what we want to do.
we can set cmake_minimum_required(VERSION 3.16)
fixed in the latest commit

Copy link
Member

Choose a reason for hiding this comment

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

This is not setting a max version. This is setting the version of CMake to set the policy values for. Setting it to 3.20 ensures that for the dotnet/runtime build, we use a consistent set of CMake policy configurations.


project(System.Globalization.Native C)

if(CLR_CMAKE_TARGET_UNIX OR CLR_CMAKE_TARGET_WASI)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Required for StaticOpenSslLinking
cmake_minimum_required(VERSION 3.16...3.20)

project(System.Security.Cryptography.Native C)

# These are happening inside of OpenSSL-defined macros out of our control
Expand Down