Skip to content

Commit

Permalink
[CMake] Bump CMake minimum version to 3.13.4
Browse files Browse the repository at this point in the history
This upgrade should be friction-less because we've already been ensuring
that CMake >= 3.13.4 is used.

This is part of the effort discussed on llvm-dev here:

  http://lists.llvm.org/pipermail/llvm-dev/2020-April/140578.html

Differential Revision: https://reviews.llvm.org/D78648

cherry-pick: afa1afd4108d973e059e5f5ad68cf01efe7985da
llvm/llvm-project@afa1afd
  • Loading branch information
ldionne authored and shintaro-iwasaki committed Oct 7, 2020
1 parent 34ad60e commit 98ad610
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
cmake_minimum_required(VERSION 3.13.4)

# Add cmake directory to search for custom cmake functions.
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})
Expand Down
2 changes: 1 addition & 1 deletion cmake/DetectTestCompiler/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8)
cmake_minimum_required(VERSION 3.13.4)
project(DetectTestCompiler C CXX)

include(CheckCCompilerFlag)
Expand Down
2 changes: 1 addition & 1 deletion runtime/cmake/LibompCheckLinkerFlag.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function(libomp_check_linker_flag flag boolean)
set(library_source
"int foo(int a) { return a*a; }")
set(cmake_source
"cmake_minimum_required(VERSION 2.8)
"cmake_minimum_required(VERSION 3.13.4)
project(foo C)
set(CMAKE_SHARED_LINKER_FLAGS \"${flag}\")
add_library(foo SHARED src_to_link.c)")
Expand Down

0 comments on commit 98ad610

Please sign in to comment.