diff options
author | ixartz <contact@ixartz.com> | 2015-11-02 23:07:45 -0500 |
---|---|---|
committer | ixartz <contact@ixartz.com> | 2015-11-10 22:29:38 -0500 |
commit | 5395cc66d68df74ff5d0920ed80eabcdd439c660 (patch) | |
tree | 7b655e5e2d9aef01ede1d2b97cae5a0107004066 /cmake | |
parent | effdaa2e713be4b5bb130ded1f25df86272b9b85 (diff) | |
download | caffeonacl-5395cc66d68df74ff5d0920ed80eabcdd439c660.tar.gz caffeonacl-5395cc66d68df74ff5d0920ed80eabcdd439c660.tar.bz2 caffeonacl-5395cc66d68df74ff5d0920ed80eabcdd439c660.zip |
OSX 10.10 (and more) use Accelerate Framework instead of veclib
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/Dependencies.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmake/Dependencies.cmake b/cmake/Dependencies.cmake index 51a803c1..64e6500e 100644 --- a/cmake/Dependencies.cmake +++ b/cmake/Dependencies.cmake @@ -102,6 +102,12 @@ elseif(APPLE) find_package(vecLib REQUIRED) include_directories(SYSTEM ${vecLib_INCLUDE_DIR}) list(APPEND Caffe_LINKER_LIBS ${vecLib_LINKER_LIBS}) + + if(VECLIB_FOUND) + if(NOT vecLib_INCLUDE_DIR MATCHES "^/System/Library/Frameworks/vecLib.framework.*") + add_definitions(-DUSE_ACCELERATE) + endif() + endif() endif() # ---[ Python |