Skip to content

Commit

Permalink
set min version of cmake to 3.10 (Azure#436)
Browse files Browse the repository at this point in the history
* set min version of cmake to 3.10

* missing readme refs
  • Loading branch information
vhvb1989 authored Mar 10, 2020
1 parent 0f411e6 commit 9e61ac7
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# SPDX-License-Identifier: MIT

cmake_minimum_required (VERSION 3.12)
cmake_minimum_required (VERSION 3.10)

list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake-modules")

Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Merging Pull Requests (for project contributors with write access)
## Developer Guide

### Prerequisites
- CMake version 3.12 is required to use these libraries.
- CMake version 3.10 is required to use these libraries.
- C compiler. MSVC, gcc or clang are recommended.
- cmocka. For building and running unit tests. By default building unit tests is disabled, so, unless you want to add unit test or run it, you don't need to install this. See below how vcpkg can be used to install dependencies
- curl. Curl is used a http stack and it is required for building and running service samples (keyvault and storage). You don't need to install curl if not building samples.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This repository contains official Embedded C libraries for Azure services.
To get started with a specific library, see the **README.md** file located in the library's project folder. You can find service libraries in the `/sdk` directory.

### Prerequisites
- CMake version 3.12 is required to use these libraries.
- CMake version 3.10 is required to use these libraries.
- C compiler. MSVC, gcc or clang are recommended.
- cmocka. For building and running unit tests. By default building unit tests is disabled, so, unless you want to add unit test or run it, you don't need to install this. See below how vcpkg can be used to install dependencies
- curl. Curl is used a http stack and it is required for building and running service samples (keyvault and storage). You don't need to install curl if not building samples.
Expand Down
2 changes: 1 addition & 1 deletion sdk/core/core/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# SPDX-License-Identifier: MIT

cmake_minimum_required (VERSION 3.12)
cmake_minimum_required (VERSION 3.10)
set(TARGET_NAME "az_core")

project (${TARGET_NAME} LANGUAGES C)
Expand Down
2 changes: 1 addition & 1 deletion sdk/core/core/test/cmocka/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# SPDX-License-Identifier: MIT

cmake_minimum_required (VERSION 3.12)
cmake_minimum_required (VERSION 3.10)
set(TARGET_NAME "az_core_test")

project (${TARGET_NAME} LANGUAGES C)
Expand Down
2 changes: 1 addition & 1 deletion sdk/iot/core/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# SPDX-License-Identifier: MIT

cmake_minimum_required (VERSION 3.12)
cmake_minimum_required (VERSION 3.10)

set(TARGET_NAME "az_iot")

Expand Down
2 changes: 1 addition & 1 deletion sdk/iot/core/tests/cmocka/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# SPDX-License-Identifier: MIT

cmake_minimum_required (VERSION 3.12)
cmake_minimum_required (VERSION 3.10)
set(TARGET_NAME "az_iot_test")

project (${TARGET_NAME} LANGUAGES C)
Expand Down
2 changes: 1 addition & 1 deletion sdk/platform/http_client/curl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

if (BUILD_CURL_TRANSPORT)

cmake_minimum_required (VERSION 3.12)
cmake_minimum_required (VERSION 3.10)

project (az_curl LANGUAGES C)

Expand Down
2 changes: 1 addition & 1 deletion sdk/platform/http_client/nohttp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# SPDX-License-Identifier: MIT

cmake_minimum_required (VERSION 3.12)
cmake_minimum_required (VERSION 3.10)

project (az_nohttp LANGUAGES C)

Expand Down
2 changes: 1 addition & 1 deletion sdk/platform/noplatform/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# SPDX-License-Identifier: MIT

cmake_minimum_required (VERSION 3.12)
cmake_minimum_required (VERSION 3.10)

project(az_noplatform LANGUAGES C)
set(CMAKE_C_STANDARD 99)
Expand Down
2 changes: 1 addition & 1 deletion sdk/platform/posix/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

if (NOT WIN32)

cmake_minimum_required (VERSION 3.12)
cmake_minimum_required (VERSION 3.10)

project(az_posix LANGUAGES C)
set(CMAKE_C_STANDARD 99)
Expand Down
2 changes: 1 addition & 1 deletion sdk/platform/win32/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

if(WIN32)

cmake_minimum_required (VERSION 3.12)
cmake_minimum_required (VERSION 3.10)

project (az_win32 LANGUAGES C)
set(CMAKE_C_STANDARD 99)
Expand Down
2 changes: 1 addition & 1 deletion sdk/samples/keyvault/keyvault/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# SPDX-License-Identifier: MIT

cmake_minimum_required (VERSION 3.12)
cmake_minimum_required (VERSION 3.10)

set(TARGET_NAME "az_keyvault")

Expand Down
2 changes: 1 addition & 1 deletion sdk/samples/keyvault/keyvault/samples/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# SPDX-License-Identifier: MIT

cmake_minimum_required (VERSION 3.12)
cmake_minimum_required (VERSION 3.10)

project (az_keyvault_keys_samples LANGUAGES C)

Expand Down
2 changes: 1 addition & 1 deletion sdk/samples/keyvault/keyvault/test/cmocka/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# SPDX-License-Identifier: MIT

cmake_minimum_required (VERSION 3.12)
cmake_minimum_required (VERSION 3.10)
set(TARGET_NAME "az_keyvault_test")

project (${TARGET_NAME} LANGUAGES C)
Expand Down
2 changes: 1 addition & 1 deletion sdk/storage/blobs/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# SPDX-License-Identifier: MIT

cmake_minimum_required (VERSION 3.12)
cmake_minimum_required (VERSION 3.10)

set(TARGET_NAME "az_storage_blobs")
project (${TARGET_NAME} LANGUAGES C)
Expand Down
2 changes: 1 addition & 1 deletion sdk/storage/blobs/samples/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# SPDX-License-Identifier: MIT

cmake_minimum_required (VERSION 3.12)
cmake_minimum_required (VERSION 3.10)

project (az_storage_blobs_samples LANGUAGES C)

Expand Down
2 changes: 1 addition & 1 deletion sdk/storage/blobs/test/cmocka/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# SPDX-License-Identifier: MIT

cmake_minimum_required (VERSION 3.12)
cmake_minimum_required (VERSION 3.10)
set(TARGET_NAME "az_storage_blobs_test")

project (${TARGET_NAME} LANGUAGES C)
Expand Down

0 comments on commit 9e61ac7

Please sign in to comment.