This is an automated email from the ASF dual-hosted git repository.
zhasheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git
The following commit(s) were added to refs/heads/master by this push:
new 38cc9c0 added ability to set search path for Accelerate library
(#10481)
38cc9c0 is described below
commit 38cc9c02821520924a8fb64b345c9bae023a5d1c
Author: David Braude <[email protected]>
AuthorDate: Mon May 21 20:11:54 2018 +0100
added ability to set search path for Accelerate library (#10481)
---
cmake/Modules/FindAccelerate.cmake | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/cmake/Modules/FindAccelerate.cmake
b/cmake/Modules/FindAccelerate.cmake
index 695538a..8bdc665 100644
--- a/cmake/Modules/FindAccelerate.cmake
+++ b/cmake/Modules/FindAccelerate.cmake
@@ -22,11 +22,13 @@
# Accelerate_INCLUDE_DIRS
# Accelerate_LIBRARIES
+file(TO_CMAKE_PATH "$ENV{Accelerate_HOME}" Accelerate_HOME)
set(Accelerate_INCLUDE_SEARCH_PATHS
-
/System/Library/Frameworks/Accelerate.framework/Versions/Current/Frameworks/vecLib.framework/Versions/Current/Headers/
+
/System/Library/Frameworks/Accelerate.framework/Versions/Current/Frameworks/vecLib.framework/Versions/Current
+ ${Accelerate_HOME}
)
-find_path(Accelerate_CBLAS_INCLUDE_DIR NAMES cblas.h PATHS
${Accelerate_INCLUDE_SEARCH_PATHS})
+find_path(Accelerate_CBLAS_INCLUDE_DIR NAMES cblas.h PATHS
${Accelerate_INCLUDE_SEARCH_PATHS} PATH_SUFFIXES Headers)
set(LOOKED_FOR
Accelerate_CBLAS_INCLUDE_DIR
--
To stop receiving notification emails like this one, please contact
[email protected].