Enabled CMP0025 as NEW (#3791)

This commit is contained in:
Ilya Lavrenov 2021-01-11 14:48:27 +03:00 committed by GitHub
parent 9069781659
commit 50f9dd8a6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 13 additions and 20 deletions

View File

@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# #
cmake_minimum_required(VERSION 3.13 FATAL_ERROR) cmake_minimum_required(VERSION 3.13)
project(OpenVINO) project(OpenVINO)

View File

@ -181,7 +181,8 @@ endif()
# Use solution folders # Use solution folders
set_property(GLOBAL PROPERTY USE_FOLDERS ON) set_property(GLOBAL PROPERTY USE_FOLDERS ON)
set(CMAKE_POLICY_DEFAULT_CMP0054 NEW) # Enable CMAKE_<LANG>_COMPILER_ID AppleClang
set(CMAKE_POLICY_DEFAULT_CMP0025 NEW)
# LTO # LTO

View File

@ -205,6 +205,7 @@ if(NOT CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
ie_add_compiler_flags(-fsigned-char) ie_add_compiler_flags(-fsigned-char)
endif() endif()
# Honor visibility properties for all target types
set(CMAKE_POLICY_DEFAULT_CMP0063 NEW) set(CMAKE_POLICY_DEFAULT_CMP0063 NEW)
set(CMAKE_CXX_VISIBILITY_PRESET hidden) set(CMAKE_CXX_VISIBILITY_PRESET hidden)
set(CMAKE_C_VISIBILITY_PRESET hidden) set(CMAKE_C_VISIBILITY_PRESET hidden)

View File

@ -2,8 +2,6 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# #
cmake_policy(SET CMP0054 NEW)
find_package(Git REQUIRED) find_package(Git REQUIRED)
set(MODELS_LST "") set(MODELS_LST "")

View File

@ -3,7 +3,7 @@
# #
# [cmake:main] # [cmake:main]
cmake_minimum_required(VERSION 3.13 FATAL_ERROR) cmake_minimum_required(VERSION 3.13)
project(InferenceEngineTemplatePlugin) project(InferenceEngineTemplatePlugin)

View File

@ -4,16 +4,11 @@
cmake_minimum_required (VERSION 3.10) cmake_minimum_required (VERSION 3.10)
# Enable CMAKE_<LANG>_COMPILER_ID AppleClang
cmake_policy(SET CMP0025 NEW)
project(Samples) project(Samples)
if(POLICY CMP0054)
cmake_policy(SET CMP0054 NEW)
endif()
if(POLICY CMP0063)
cmake_policy(SET CMP0063 NEW)
endif()
if (CMAKE_BUILD_TYPE STREQUAL "") if (CMAKE_BUILD_TYPE STREQUAL "")
message(STATUS "CMAKE_BUILD_TYPE not defined, 'Release' will be used") message(STATUS "CMAKE_BUILD_TYPE not defined, 'Release' will be used")
set(CMAKE_BUILD_TYPE "Release") set(CMAKE_BUILD_TYPE "Release")
@ -21,7 +16,7 @@ endif()
set_property(GLOBAL PROPERTY USE_FOLDERS ON) set_property(GLOBAL PROPERTY USE_FOLDERS ON)
if (NOT(BIN_FOLDER)) if (NOT BIN_FOLDER)
string(TOLOWER ${CMAKE_SYSTEM_PROCESSOR} ARCH) string(TOLOWER ${CMAKE_SYSTEM_PROCESSOR} ARCH)
if(ARCH STREQUAL "x86_64" OR ARCH STREQUAL "amd64") # Windows detects Intel's 64-bit CPU as AMD64 if(ARCH STREQUAL "x86_64" OR ARCH STREQUAL "amd64") # Windows detects Intel's 64-bit CPU as AMD64
set(ARCH intel64) set(ARCH intel64)

View File

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
cmake_minimum_required (VERSION 3.1 FATAL_ERROR) cmake_minimum_required (VERSION 3.1)
include(CheckCXXCompilerFlag) include(CheckCXXCompilerFlag)
# Register Intel helper modules. # Register Intel helper modules.

View File

@ -53,8 +53,6 @@ set(NGRAPH_INCLUDE_PATH
if (APPLE) if (APPLE)
# Enable MACOS_RPATH by default. # Enable MACOS_RPATH by default.
cmake_policy(SET CMP0042 NEW) cmake_policy(SET CMP0042 NEW)
# Enable CMAKE_<LANG>_COMPILER_ID AppleClang
cmake_policy(SET CMP0025 NEW)
endif() endif()
project (ngraph) project (ngraph)

View File

@ -4,7 +4,7 @@
project(openvino_fuzzing) project(openvino_fuzzing)
cmake_minimum_required(VERSION 3.13 FATAL_ERROR) cmake_minimum_required(VERSION 3.13)
if (CMAKE_BUILD_TYPE STREQUAL "") if (CMAKE_BUILD_TYPE STREQUAL "")
message(STATUS "CMAKE_BUILD_TYPE not defined, 'Release' will be used") message(STATUS "CMAKE_BUILD_TYPE not defined, 'Release' will be used")

View File

@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# #
cmake_minimum_required(VERSION 3.13 FATAL_ERROR) cmake_minimum_required(VERSION 3.13)
if (CMAKE_BUILD_TYPE STREQUAL "") if (CMAKE_BUILD_TYPE STREQUAL "")
message(STATUS "CMAKE_BUILD_TYPE not defined, 'Release' will be used") message(STATUS "CMAKE_BUILD_TYPE not defined, 'Release' will be used")

View File

@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# #
cmake_minimum_required(VERSION 3.13 FATAL_ERROR) cmake_minimum_required(VERSION 3.13)
set (CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the build type") set (CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the build type")