diff options
Diffstat (limited to 'cmake/modules/DownloadCPUINFO.cmake')
-rw-r--r-- | cmake/modules/DownloadCPUINFO.cmake | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/cmake/modules/DownloadCPUINFO.cmake b/cmake/modules/DownloadCPUINFO.cmake new file mode 100644 index 0000000..730ecbf --- /dev/null +++ b/cmake/modules/DownloadCPUINFO.cmake @@ -0,0 +1,16 @@ +cmake_minimum_required(VERSION 3.7 FATAL_ERROR) + +project(cpuinfo-download NONE) + +include(ExternalProject) + +ExternalProject_Add(cpuinfo + GIT_REPOSITORY https://github.com/pytorch/cpuinfo + GIT_TAG master + SOURCE_DIR "${FBGEMM_THIRDPARTY_DIR}/cpuinfo" + BINARY_DIR "${FBGEMM_BINARY_DIR}/cpuinfo" + CONFIGURE_COMMAND "" + BUILD_COMMAND "" + INSTALL_COMMAND "" + TEST_COMMAND "" +) |