Skip to content

Commit 0955977

Browse files
authored
Merge pull request #1152 from liujunyi-sjtu/CentOS7
add missing dependency of zlib to protobuf
2 parents 2b0b18d + b697154 commit 0955977

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

cmake/cblas.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
set(CBLAS_FOUND OFF)
1717

1818
## Find MKL First.
19-
set(MKL_ROOT $ENV{MKL_ROOT} CACHE PATH "Folder contains MKL")
19+
set(MKL_ROOT $ENV{MKLROOT} CACHE PATH "Folder contains MKL")
2020

2121
find_path(MKL_INCLUDE_DIR mkl.h PATHS
2222
${MKL_ROOT}/include)

cmake/external/protobuf.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ ExternalProject_Add(
5454
CONFIGURE_COMMAND
5555
${CMAKE_COMMAND} ${PROTOBUF_SOURCES_DIR}/src/protobuf/cmake
5656
-Dprotobuf_BUILD_TESTS=OFF
57+
-DZLIB_ROOT:FILEPATH=${ZLIB_ROOT}
5758
-DCMAKE_POSITION_INDEPENDENT_CODE=ON
5859
-DCMAKE_BUILD_TYPE=Release
5960
-DCMAKE_INSTALL_PREFIX=${PROTOBUF_INSTALL_DIR}

0 commit comments

Comments
 (0)