diff options
Diffstat (limited to 'infra/cmake/packages/ProtobufSourceConfig.cmake')
-rw-r--r-- | infra/cmake/packages/ProtobufSourceConfig.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/infra/cmake/packages/ProtobufSourceConfig.cmake b/infra/cmake/packages/ProtobufSourceConfig.cmake index baa49eeb0..a1704e53d 100644 --- a/infra/cmake/packages/ProtobufSourceConfig.cmake +++ b/infra/cmake/packages/ProtobufSourceConfig.cmake @@ -7,7 +7,8 @@ function(_ProtobufSource_import) nnas_include(ExternalSourceTools) nnas_include(OptionTools) - envoption(PROTOBUF_URL https://github.com/protocolbuffers/protobuf/archive/v3.5.2.tar.gz) + envoption(EXTERNAL_DOWNLOAD_SERVER "https://github.com") + envoption(PROTOBUF_URL ${EXTERNAL_DOWNLOAD_SERVER}/protocolbuffers/protobuf/archive/v3.5.2.tar.gz) ExternalSource_Download(PROTOBUF ${PROTOBUF_URL} PATCH ${CMAKE_CURRENT_LIST_DIR}/ProtobufSource.patch) |