Skip to content

Commit d070dcb

Browse files
update cmake mac (#7443)
* update cmake mac * cmake specific version * remove specific version * cmake policy version minimum * Update build/ci/job-template.yml * Try adding -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to libomp.rb * Update job-template.yml * Update cmake_minimum_required --------- Co-authored-by: Eric StJohn <ericstj@microsoft.com>
1 parent be81d3f commit d070dcb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

build/libomp.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ class Libomp < Formula
1717
depends_on "cmake" => :build
1818

1919
def install
20-
system "cmake", ".", *std_cmake_args
20+
system "cmake", ".", "-DCMAKE_POLICY_VERSION_MINIMUM=3.5", *std_cmake_args
2121
system "make", "install"
22-
system "cmake", ".", "-DLIBOMP_ENABLE_SHARED=OFF", *std_cmake_args
22+
system "cmake", ".", "-DLIBOMP_ENABLE_SHARED=OFF", "-DCMAKE_POLICY_VERSION_MINIMUM=3.5", *std_cmake_args
2323
system "make", "install"
2424
end
2525

src/Native/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 2.8.12)
1+
cmake_minimum_required(VERSION 3.20)
22

33
project(Native)
44

0 commit comments

Comments
 (0)