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

(chore) set min version of cmake in native CmakeLists.txt to surpass Cmake CMP0000 policy warning #93437

Merged
merged 8 commits into from
Oct 14, 2023
2 changes: 2 additions & 0 deletions src/native/libs/System.Globalization.Native/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
cmake_minimum_required(VERSION 3.20)
jkotas marked this conversation as resolved.
Show resolved Hide resolved
Neo-vortex marked this conversation as resolved.
Show resolved Hide resolved

project(System.Globalization.Native C)

if(CLR_CMAKE_TARGET_UNIX OR CLR_CMAKE_TARGET_WASI)
Expand Down
2 changes: 2 additions & 0 deletions src/native/libs/System.IO.Compression.Native/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
cmake_minimum_required(VERSION 3.20)

jkotas marked this conversation as resolved.
Show resolved Hide resolved
project(System.IO.Compression.Native C)

include(${CMAKE_CURRENT_LIST_DIR}/extra_libs.cmake)
Expand Down
2 changes: 2 additions & 0 deletions src/native/libs/System.IO.Ports.Native/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
cmake_minimum_required(VERSION 3.20)

jkotas marked this conversation as resolved.
Show resolved Hide resolved
project(System.IO.Ports.Native C)

set(PORTS_SOURCES
Expand Down
2 changes: 2 additions & 0 deletions src/native/libs/System.Native/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
cmake_minimum_required(VERSION 3.20)

jkotas marked this conversation as resolved.
Show resolved Hide resolved
project(System.Native C)

if (NOT CLR_CMAKE_TARGET_MACCATALYST AND NOT CLR_CMAKE_TARGET_IOS AND NOT CLR_CMAKE_TARGET_TVOS AND NOT CLR_CMAKE_TARGET_WASI)
Expand Down
2 changes: 2 additions & 0 deletions src/native/libs/System.Net.Security.Native/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
cmake_minimum_required(VERSION 3.20)

jkotas marked this conversation as resolved.
Show resolved Hide resolved
project(System.Net.Security.Native C)

add_compile_options(-Wno-incompatible-pointer-types-discards-qualifiers)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
cmake_minimum_required(VERSION 3.20)

jkotas marked this conversation as resolved.
Show resolved Hide resolved
project(System.Security.Cryptography.Native.Android C)

add_compile_options(-Wno-gnu-zero-variadic-macro-arguments)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
cmake_minimum_required(VERSION 3.20)

jkotas marked this conversation as resolved.
Show resolved Hide resolved
project(System.Security.Cryptography.Native.Apple C)

include(${CMAKE_CURRENT_LIST_DIR}/extra_libs.cmake)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
cmake_minimum_required(VERSION 3.20)
jkotas marked this conversation as resolved.
Show resolved Hide resolved
Neo-vortex marked this conversation as resolved.
Show resolved Hide resolved

project(System.Security.Cryptography.Native C)

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