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:
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..036b824 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 "${CMAKE_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 "${CMAKE_SOURCE_DIR}/third_party/cpuinfo" CACHE STRING
+ "cpuinfo source directory from submodules")
endif()
#build cpuinfo