mirror of
https://github.com/microsoft/vcpkg.git
synced 2026-01-18 01:11:23 +01:00
40 lines
1.2 KiB
Diff
40 lines
1.2 KiB
Diff
diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt
|
|
index 8a9ec44542..54f000c6d4 100644
|
|
--- a/source/CMakeLists.txt
|
|
+++ b/source/CMakeLists.txt
|
|
@@ -1,4 +1,5 @@
|
|
# vim: syntax=cmake
|
|
+cmake_minimum_required (VERSION 3.10)
|
|
if(NOT CMAKE_BUILD_TYPE)
|
|
# default to Release build for GCC builds
|
|
set(CMAKE_BUILD_TYPE Release CACHE STRING
|
|
@@ -6,18 +7,9 @@ if(NOT CMAKE_BUILD_TYPE)
|
|
FORCE)
|
|
endif()
|
|
message(STATUS "cmake version ${CMAKE_VERSION}")
|
|
-if(POLICY CMP0025)
|
|
- cmake_policy(SET CMP0025 OLD) # report Apple's Clang as just Clang
|
|
-endif()
|
|
-if(POLICY CMP0042)
|
|
- cmake_policy(SET CMP0042 NEW) # MACOSX_RPATH
|
|
-endif()
|
|
-if(POLICY CMP0054)
|
|
- cmake_policy(SET CMP0054 OLD) # Only interpret if() arguments as variables or keywords when unquoted
|
|
-endif()
|
|
|
|
project (x265)
|
|
-cmake_minimum_required (VERSION 2.8.8) # OBJECT libraries require 2.8.8
|
|
+
|
|
include(CheckIncludeFiles)
|
|
include(CheckFunctionExists)
|
|
include(CheckSymbolExists)
|
|
@@ -171,7 +163,7 @@ if(APPLE)
|
|
add_definitions(-DMACOS=1)
|
|
endif()
|
|
|
|
-if(${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
|
|
+if(${CMAKE_CXX_COMPILER_ID} MATCHES "Clang")
|
|
set(CLANG 1)
|
|
endif()
|
|
if(${CMAKE_CXX_COMPILER_ID} STREQUAL "Intel")
|