File tree Expand file tree Collapse file tree 4 files changed +15
-32
lines changed Expand file tree Collapse file tree 4 files changed +15
-32
lines changed Original file line number Diff line number Diff line change 13
13
# limitations under the License.
14
14
15
15
include (ExternalProject )
16
- include (ExternalProjectFlags )
17
-
18
- ExternalProject_GitSource (
19
- GOOGLETEST_GIT
20
- GIT_REPOSITORY "https://github.com/google/googletest.git"
21
- GIT_TAG "release-1.8.0"
22
- )
23
16
24
17
ExternalProject_Add (
25
18
googletest
26
19
27
- ${GOOGLETEST_GIT}
20
+ DOWNLOAD_DIR ${PROJECT_BINARY_DIR} /downloads
21
+ DOWNLOAD_NAME googletest-1.8.0.tar.gz
22
+ URL https://github.com/google/googletest/archive/release-1.8.0.tar.gz
23
+ URL_HASH SHA256=58a6f4277ca2bc8565222b3bbd58a177609e9c488e8a72649359ba51450db7d8
28
24
29
25
PREFIX ${PROJECT_BINARY_DIR} /external/googletest
30
26
Original file line number Diff line number Diff line change 13
13
# limitations under the License.
14
14
15
15
include (ExternalProject )
16
- include (ExternalProjectFlags )
17
16
18
17
if (WIN32 OR LEVELDB_ROOT )
19
18
# If the user has supplied a LEVELDB_ROOT then just use it. Add an empty
@@ -42,16 +41,13 @@ else()
42
41
$<$<CONFIG:Release>:${CMAKE_CXX_FLAGS_RELEASE} >"
43
42
)
44
43
45
- ExternalProject_GitSource (
46
- LEVELDB_GIT
47
- GIT_REPOSITORY "https://github.com/google/leveldb.git"
48
- GIT_TAG "v1.20"
49
- )
50
-
51
44
ExternalProject_Add (
52
45
leveldb
53
46
54
- ${LEVELDB_GIT}
47
+ DOWNLOAD_DIR ${PROJECT_BINARY_DIR} /downloads
48
+ DOWNLOAD_NAME leveldb-v1.20.tar.gz
49
+ URL https://github.com/google/leveldb/archive/v1.20.tar.gz
50
+ URL_HASH SHA256=f5abe8b5b209c2f36560b75f32ce61412f39a2922f7045ae764a2c23335b6664
55
51
56
52
PREFIX ${PROJECT_BINARY_DIR} /external/leveldb
57
53
Original file line number Diff line number Diff line change 11
11
# limitations under the License.
12
12
13
13
include (ExternalProject )
14
- include (ExternalProjectFlags )
15
-
16
- ExternalProject_GitSource (
17
- NANOPB_GIT
18
- GIT_REPOSITORY "https://github.com/nanopb/nanopb.git"
19
- GIT_TAG "0.3.8"
20
- )
21
14
22
15
set (
23
16
NANOPB_PROTOC_BIN
@@ -29,7 +22,9 @@ ExternalProject_Add(
29
22
DEPENDS
30
23
protobuf
31
24
32
- ${NANOPB_GIT}
25
+ DOWNLOAD_DIR ${PROJECT_BINARY_DIR} /downloads
26
+ URL https://github.com/nanopb/nanopb/archive/nanopb-0.3.8.tar.gz
27
+ URL_HASH SHA256=f192c7c7cc036be36babc303b7d2315d4f62e2fe4be28c172cfed4cfa0ed5f22
33
28
34
29
BUILD_IN_SOURCE ON
35
30
Original file line number Diff line number Diff line change 13
13
# limitations under the License.
14
14
15
15
include (ExternalProject )
16
- include (ExternalProjectFlags )
17
-
18
- ExternalProject_GitSource (
19
- PROTOBUF_GIT
20
- GIT_REPOSITORY "https://github.com/google/protobuf.git"
21
- GIT_TAG "v3.5.1.1"
22
- )
23
16
24
17
ExternalProject_Add (
25
18
protobuf
26
19
27
- ${PROTOBUF_GIT}
20
+ DOWNLOAD_DIR ${PROJECT_BINARY_DIR} /downloads
21
+ DOWNLOAD_NAME protobuf-v3.5.11.tar.gz
22
+ URL https://github.com/google/protobuf/archive/v3.5.1.1.tar.gz
23
+ URL_HASH SHA256=56b5d9e1ab2bf4f5736c4cfba9f4981fbc6976246721e7ded5602fbaee6d6869
28
24
29
25
PREFIX ${PROJECT_BINARY_DIR} /external/protobuf
30
26
You can’t perform that action at this time.
0 commit comments