Skip to content

Commit

Permalink
Bump cmake version to 3.13 (#2258)
Browse files Browse the repository at this point in the history
  • Loading branch information
evgenytalanin-intel authored Sep 18, 2020
1 parent 2026627 commit fe99e05
Show file tree
Hide file tree
Showing 11 changed files with 8 additions and 60 deletions.
12 changes: 1 addition & 11 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,7 @@ cmake_policy(SET CMP0054 NEW)
# it allows to install targets created outside of current projects
# See https://blog.kitware.com/cmake-3-13-0-available-for-download/

if (APPLE)
if(CMAKE_GENERATOR STREQUAL "Xcode")
# due to https://gitlab.kitware.com/cmake/cmake/issues/14254
cmake_minimum_required(VERSION 3.12.0 FATAL_ERROR)
else()
# due to https://cmake.org/cmake/help/v3.12/policy/CMP0068.html
cmake_minimum_required(VERSION 3.9 FATAL_ERROR)
endif()
else()
cmake_minimum_required(VERSION 3.7.2 FATAL_ERROR)
endif()
cmake_minimum_required(VERSION 3.13 FATAL_ERROR)

project(OpenVINO)

Expand Down
7 changes: 1 addition & 6 deletions docs/template_plugin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@
#

# [cmake:main]
if (APPLE)
# due to https://cmake.org/cmake/help/v3.12/policy/CMP0068.html
cmake_minimum_required(VERSION 3.9 FATAL_ERROR)
else()
cmake_minimum_required(VERSION 3.7.2 FATAL_ERROR)
endif()
cmake_minimum_required(VERSION 3.13 FATAL_ERROR)

project(InferenceEngineTemplatePlugin)

Expand Down
6 changes: 0 additions & 6 deletions inference-engine/cmake/models.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@
# SPDX-License-Identifier: Apache-2.0
#

if(ENABLE_DOCKER)
cmake_minimum_required(VERSION 3.3 FATAL_ERROR)
else()
cmake_minimum_required(VERSION 3.8 FATAL_ERROR)
endif()

cmake_policy(SET CMP0054 NEW)

find_package(Git REQUIRED)
Expand Down
2 changes: 1 addition & 1 deletion inference-engine/ie_bridges/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0

# Defines the CMake commands/policies
cmake_minimum_required (VERSION 3.3)
cmake_minimum_required (VERSION 3.13)

# Set the project name
project (ie_python_api)
Expand Down
2 changes: 1 addition & 1 deletion inference-engine/samples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0
#

cmake_minimum_required (VERSION 2.8.12)
cmake_minimum_required (VERSION 3.13)

project(Samples)

Expand Down
2 changes: 0 additions & 2 deletions ngraph/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
# limitations under the License.
# ******************************************************************************

cmake_minimum_required (VERSION 3.11)

# set directory where the custom finders live
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")

Expand Down
2 changes: 1 addition & 1 deletion ngraph/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# limitations under the License.
# ******************************************************************************

cmake_minimum_required (VERSION 3.1)
cmake_minimum_required (VERSION 3.13)

project (pyngraph)

Expand Down
2 changes: 0 additions & 2 deletions openvino/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
# limitations under the License.
# ******************************************************************************

cmake_minimum_required(VERSION 3.10)

add_subdirectory(itt)

openvino_developer_export_targets(openvino::itt)
11 changes: 1 addition & 10 deletions tests/fuzz/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,7 @@
# SPDX-License-Identifier: Apache-2.0
#

if(ENABLE_DOCKER)
cmake_minimum_required(VERSION 3.3 FATAL_ERROR)
else()
if (APPLE)
# due to https://cmake.org/cmake/help/v3.12/policy/CMP0068.html
cmake_minimum_required(VERSION 3.9 FATAL_ERROR)
else()
cmake_minimum_required(VERSION 3.7.2 FATAL_ERROR)
endif()
endif()
cmake_minimum_required(VERSION 3.13 FATAL_ERROR)

set(OpenVINO_MAIN_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../..)
set(CMAKE_MODULE_PATH "${OpenVINO_MAIN_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
Expand Down
11 changes: 1 addition & 10 deletions tests/stress_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,7 @@
# SPDX-License-Identifier: Apache-2.0
#

if(ENABLE_DOCKER)
cmake_minimum_required(VERSION 3.3 FATAL_ERROR)
else()
if (APPLE)
# due to https://cmake.org/cmake/help/v3.12/policy/CMP0068.html
cmake_minimum_required(VERSION 3.9 FATAL_ERROR)
else()
cmake_minimum_required(VERSION 3.7.2 FATAL_ERROR)
endif()
endif()
cmake_minimum_required(VERSION 3.13 FATAL_ERROR)

if (CMAKE_BUILD_TYPE STREQUAL "")
message(STATUS "CMAKE_BUILD_TYPE not defined, 'Release' will be used")
Expand Down
11 changes: 1 addition & 10 deletions tests/time_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,7 @@
# SPDX-License-Identifier: Apache-2.0
#

if(ENABLE_DOCKER)
cmake_minimum_required(VERSION 3.3 FATAL_ERROR)
else()
if (APPLE)
# due to https://cmake.org/cmake/help/v3.12/policy/CMP0068.html
cmake_minimum_required(VERSION 3.9 FATAL_ERROR)
else()
cmake_minimum_required(VERSION 3.7.2 FATAL_ERROR)
endif()
endif()
cmake_minimum_required(VERSION 3.13 FATAL_ERROR)

if (CMAKE_BUILD_TYPE STREQUAL "")
message(STATUS "CMAKE_BUILD_TYPE not defined, 'Release' will be used")
Expand Down

0 comments on commit fe99e05

Please sign in to comment.