@@ -43,12 +43,13 @@ def get_cmake_archive_urls_and_sha256s(version, verbose=False):
4343 sha_256_file = "cmake-%s-SHA-256.txt" % version
4444
4545 expected_files = {
46- "cmake-%s.tar.gz" % version : "unix_source" ,
47- "cmake-%s.zip" % version : "win_source" ,
48- "cmake-%s-Linux-x86_64.tar.gz" % version : "linux64_binary" ,
49- "cmake-%s-Darwin-x86_64.tar.gz" % version : "macosx_binary" ,
50- "cmake-%s-win32-x86.zip" % version : "win32_binary" ,
51- "cmake-%s-win64-x64.zip" % version : "win64_binary" ,
46+ "cmake-%s.tar.gz" % version : "unix_source" ,
47+ "cmake-%s.zip" % version : "win_source" ,
48+ "cmake-%s-linux-x86_64.tar.gz" % version : "linux64_binary" ,
49+ "cmake-%s-macos-universal.tar.gz" % version : "macos10_13_binary" ,
50+ "cmake-%s-macos10.10-universal.tar.gz" % version : "macos10_10_binary" ,
51+ "cmake-%s-windows-i386.zip" % version : "win32_binary" ,
52+ "cmake-%s-windows-x86_64.zip" % version : "win64_binary" ,
5253 }
5354
5455 # Get SHA256s for each asset
@@ -102,29 +103,32 @@ def generate_cmake_variables(urls_and_sha256s):
102103 cmake_variables = textwrap .dedent ("""
103104 #-----------------------------------------------------------------------------
104105 # CMake sources
105- set(unix_source_url "{unix_source_url}")
106- set(unix_source_sha256 "{unix_source_sha256}")
106+ set(unix_source_url "{unix_source_url}")
107+ set(unix_source_sha256 "{unix_source_sha256}")
107108
108- set(windows_source_url "{win_source_url}")
109- set(windows_source_sha256 "{win_source_sha256}")
109+ set(windows_source_url "{win_source_url}")
110+ set(windows_source_sha256 "{win_source_sha256}")
110111
111112 #-----------------------------------------------------------------------------
112113 # CMake binaries
113114
114- set(linux32_binary_url "NA") # Linux 32-bit binaries not available
115- set(linux32_binary_sha256 "NA")
115+ set(linux32_binary_url "NA") # Linux 32-bit binaries not available
116+ set(linux32_binary_sha256 "NA")
116117
117- set(linux64_binary_url "{linux64_binary_url}")
118- set(linux64_binary_sha256 "{linux64_binary_sha256}")
118+ set(linux64_binary_url "{linux64_binary_url}")
119+ set(linux64_binary_sha256 "{linux64_binary_sha256}")
119120
120- set(macosx_binary_url "{macosx_binary_url }")
121- set(macosx_binary_sha256 "{macosx_binary_sha256 }")
121+ set(macos10_13_binary_url "{macos10_13_binary_url }")
122+ set(macos10_13_binary_sha256 "{macos10_13_binary_sha256 }")
122123
123- set(win32_binary_url "{win32_binary_url }")
124- set(win32_binary_sha256 "{win32_binary_sha256 }")
124+ set(macos10_10_binary_url "{macos10_10_binary_url }")
125+ set(macos10_10_binary_sha256 "{macos10_10_binary_sha256 }")
125126
126- set(win64_binary_url "{win64_binary_url}")
127- set(win64_binary_sha256 "{win64_binary_sha256}")
127+ set(win32_binary_url "{win32_binary_url}")
128+ set(win32_binary_sha256 "{win32_binary_sha256}")
129+
130+ set(win64_binary_url "{win64_binary_url}")
131+ set(win64_binary_sha256 "{win64_binary_sha256}")
128132 """ ).format (** template_inputs )
129133
130134 return cmake_variables
0 commit comments