31 lines
911 B
CMake
31 lines
911 B
CMake
# Copyright (c) Facebook, Inc. and its affiliates.
|
|
# All rights reserved.
|
|
#
|
|
# Copyright 2019 Google LLC
|
|
#
|
|
# This source code is licensed under the BSD-style license found in the
|
|
# LICENSE file in the root directory of this source tree.
|
|
|
|
CMAKE_MINIMUM_REQUIRED(VERSION 3.5 FATAL_ERROR)
|
|
|
|
PROJECT(pthreadpool-download NONE)
|
|
|
|
# Set file timestamps to the time of extraction.
|
|
IF(POLICY CMP0135)
|
|
CMAKE_POLICY(SET CMP0135 NEW)
|
|
ENDIF()
|
|
|
|
# LINT.IfChange
|
|
INCLUDE(ExternalProject)
|
|
ExternalProject_Add(pthreadpool
|
|
URL https://github.com/Maratyszcza/pthreadpool/archive/4fe0e1e183925bf8cfa6aae24237e724a96479b8.zip
|
|
URL_HASH SHA256=a4cf06de57bfdf8d7b537c61f1c3071bce74e57524fe053e0bbd2332feca7f95
|
|
SOURCE_DIR "${CMAKE_BINARY_DIR}/pthreadpool-source"
|
|
BINARY_DIR "${CMAKE_BINARY_DIR}/pthreadpool"
|
|
CONFIGURE_COMMAND ""
|
|
BUILD_COMMAND ""
|
|
INSTALL_COMMAND ""
|
|
TEST_COMMAND ""
|
|
)
|
|
# LINT.ThenChange(../WORKSPACE.bazel)
|