Skip to content

Commit

Permalink
Increase cmake minimum version on windows (#1844)
Browse files Browse the repository at this point in the history
OpenSSL changes requires 3.20 at minimum. However on windows this isn't a difficult requirement to have
  • Loading branch information
thhous-msft authored Jul 23, 2021
1 parent 7c03e64 commit 6ee2ec9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

cmake_minimum_required(VERSION 3.16)
if ("${CMAKE_HOST_SYSTEM_NAME}" STREQUAL "Windows")
cmake_minimum_required(VERSION 3.20)
else()
cmake_minimum_required(VERSION 3.16)
endif()

# Disable in-source builds to prevent source tree corruption.
if("${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")
Expand Down

0 comments on commit 6ee2ec9

Please sign in to comment.