forked from fblumenthal/buildem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
openblas.cmake
34 lines (27 loc) · 983 Bytes
/
openblas.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#
# Install OpenBLAS from source
#
if (NOT openblas_NAME)
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
include (ExternalProject)
include (ExternalSource)
external_git_repo (openblas
v0.2.8
https://github.com/xianyi/OpenBLAS)
message ("Installing ${openblas_NAME} into ilastik build area: ${BUILDEM_DIR} ...")
ExternalProject_Add(${openblas_NAME}
# DEPENDS
PREFIX ${BUILDEM_DIR}
GIT_REPOSITORY ${openblas_URL}
GIT_TAG ${openblas_TAG}
UPDATE_COMMAND ""
PATCH_COMMAND ""
CONFIGURE_COMMAND ""
BUILD_COMMAND $(MAKE) NO_AVX=1 NO_AFFINITY=1 -j8
BUILD_IN_SOURCE 1
INSTALL_COMMAND $(MAKE) PREFIX=${BUILDEM_DIR} install &&
ln -fs libopenblas.so ${BUILDEM_DIR}/lib/libblas.so &&
ln -fs libopenblas.so ${BUILDEM_DIR}/lib/liblapack.so
)
set_target_properties(${openblas_NAME} PROPERTIES EXCLUDE_FROM_ALL ON)
endif (NOT openblas_NAME)