Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/FBGEMM.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaya S Khudia <dskhudia@fb.com>2019-05-14 23:21:21 +0300
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>2019-05-14 23:25:14 +0300
commit7de846addbddd66ee39892a18d0c32b33a3143f9 (patch)
treef982de34806b626eaa14950b3ea7a7ecfca6a20e /CMakeLists.txt
parentb14f582ca614bb01b53e4c842c8d50e511454ade (diff)
Use submodules instead of cmake downloads
Summary: Pull Request resolved: https://github.com/pytorch/FBGEMM/pull/96 Reviewed By: jianyuh Differential Revision: D15336047 Pulled By: dskhudia fbshipit-source-id: 93435ba920baa3a712c5741e60c479901c95115d
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt24
1 files changed, 4 insertions, 20 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 494e261..6008a34 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -106,16 +106,8 @@ target_compile_options(fbgemm_avx512 PRIVATE
if(NOT TARGET asmjit)
#Download asmjit from github if ASMJIT_SRC_DIR is not specified.
if(NOT DEFINED ASMJIT_SRC_DIR)
- message(STATUS "Downloading asmjit to ${FBGEMM_THIRDPARTY_DIR}/asmjit
- (define ASMJIT_SRC_DIR to avoid it)")
- configure_file("${FBGEMM_SOURCE_DIR}/cmake/modules/DownloadASMJIT.cmake"
- "${FBGEMM_BINARY_DIR}/asmjit-download/CMakeLists.txt")
- execute_process(COMMAND "${CMAKE_COMMAND}" -G "${CMAKE_GENERATOR}" .
- WORKING_DIRECTORY "${FBGEMM_BINARY_DIR}/asmjit-download")
- execute_process(COMMAND "${CMAKE_COMMAND}" --build .
- WORKING_DIRECTORY "${FBGEMM_BINARY_DIR}/asmjit-download")
- set(ASMJIT_SRC_DIR "${FBGEMM_THIRDPARTY_DIR}/asmjit" CACHE STRING
- "asmjit source directory")
+ set(ASMJIT_SRC_DIR "${FBGEMM_SOURCE_DIR}/third_party/asmjit"
+ CACHE STRING "asmjit source directory from submodules")
endif()
#build asmjit
@@ -127,16 +119,8 @@ endif()
if(NOT TARGET cpuinfo)
#Download cpuinfo from github if CPUINFO_SOURCE_DIR is not specified.
if(NOT DEFINED CPUINFO_SOURCE_DIR)
- message(STATUS "Downloading cpuinfo to ${FBGEMM_THIRDPARTY_DIR}/cpuinfo
- (define CPUINFO_SOURCE_DIR to avoid it)")
- configure_file("${FBGEMM_SOURCE_DIR}/cmake/modules/DownloadCPUINFO.cmake"
- "${FBGEMM_BINARY_DIR}/cpuinfo-download/CMakeLists.txt")
- execute_process(COMMAND "${CMAKE_COMMAND}" -G "${CMAKE_GENERATOR}" .
- WORKING_DIRECTORY "${FBGEMM_BINARY_DIR}/cpuinfo-download")
- execute_process(COMMAND "${CMAKE_COMMAND}" --build .
- WORKING_DIRECTORY "${FBGEMM_BINARY_DIR}/cpuinfo-download")
- set(CPUINFO_SOURCE_DIR "${FBGEMM_THIRDPARTY_DIR}/cpuinfo" CACHE STRING
- "cpuinfo source directory")
+ set(CPUINFO_SOURCE_DIR "${FBGEMM_SOURCE_DIR}/third_party/cpuinfo"
+ CACHE STRING "cpuinfo source directory from submodules")
endif()
#build cpuinfo