mirror of
https://github.com/facebook/zstd.git
synced 2025-12-01 00:02:43 -05:00
Merge pull request #4210 from facebook/cm310
Update cmake minimum requirement to 3.10
This commit is contained in:
commit
f7a8bb1263
@ -7,7 +7,7 @@
|
|||||||
# in the COPYING file in the root directory of this source tree).
|
# in the COPYING file in the root directory of this source tree).
|
||||||
# ################################################################
|
# ################################################################
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
|
cmake_minimum_required(VERSION 3.10 FATAL_ERROR)
|
||||||
|
|
||||||
# As of 2018-12-26 ZSTD has been validated to build with cmake version 3.13.2 new policies.
|
# As of 2018-12-26 ZSTD has been validated to build with cmake version 3.13.2 new policies.
|
||||||
# Set and use the newest cmake policies that are validated to work
|
# Set and use the newest cmake policies that are validated to work
|
||||||
|
|||||||
@ -1,11 +1,10 @@
|
|||||||
include(CheckCXXCompilerFlag)
|
include(CheckCXXCompilerFlag)
|
||||||
include(CheckCCompilerFlag)
|
include(CheckCCompilerFlag)
|
||||||
# VERSION_GREATER_EQUAL requires CMake 3.7 or later.
|
|
||||||
# https://cmake.org/cmake/help/latest/command/if.html#version-greater-equal
|
if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.18)
|
||||||
if (CMAKE_VERSION VERSION_LESS 3.18)
|
|
||||||
set(ZSTD_HAVE_CHECK_LINKER_FLAG false)
|
|
||||||
else ()
|
|
||||||
set(ZSTD_HAVE_CHECK_LINKER_FLAG true)
|
set(ZSTD_HAVE_CHECK_LINKER_FLAG true)
|
||||||
|
else ()
|
||||||
|
set(ZSTD_HAVE_CHECK_LINKER_FLAG false)
|
||||||
endif ()
|
endif ()
|
||||||
if (ZSTD_HAVE_CHECK_LINKER_FLAG)
|
if (ZSTD_HAVE_CHECK_LINKER_FLAG)
|
||||||
include(CheckLinkerFlag)
|
include(CheckLinkerFlag)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user