Skip to content

Commit ce488af

Browse files
wantehchanglibyuv LUCI CQ
authored and
libyuv LUCI CQ
committed
Call cmake_minimum_required(VERSION 3.16) first
CMake version >= 3.16 comes from Google's Foundational C++ Support matrix: https://github.com/google/oss-policies-info/blob/main/foundational-cxx-support-matrix.md Call cmake_minimum_required() first, followed by project(). These changes fix two warnings from cmake version 3.31.5 and 4.0.1. Change-Id: I42d51f2764d95e23a45a709986011dc0aafb3cf8 Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/6451084 Reviewed-by: Frank Barchard <[email protected]> Reviewed-by: James Zern <[email protected]> Commit-Queue: Frank Barchard <[email protected]>
1 parent bf0f29f commit ce488af

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
# Originally created for "roxlu build system" to compile libyuv on windows
33
# Run with -DUNIT_TEST=ON to build unit tests
44

5-
include(CheckCSourceCompiles)
6-
5+
cmake_minimum_required( VERSION 3.16 )
76
project ( YUV C CXX ) # "C" is required even for C++ projects
8-
cmake_minimum_required( VERSION 3.5 )
97
option( UNIT_TEST "Built unit tests" OFF )
108

9+
include(CheckCSourceCompiles)
10+
1111
set ( ly_base_dir ${PROJECT_SOURCE_DIR} )
1212
set ( ly_src_dir ${ly_base_dir}/source )
1313
set ( ly_inc_dir ${ly_base_dir}/include )

0 commit comments

Comments
 (0)