summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorJosh Klontz <josh.klontz@gmail.com>2016-05-31 18:08:04 -0600
committerJosh Klontz <josh.klontz@gmail.com>2016-05-31 18:08:04 -0600
commit918d9994e4b2e9d82bd7929b0ef1d90393f68b31 (patch)
treeeaf4f0955fea697f5de5fe0477e79bea9042182d /cmake
parent6f154636575fb3f53796230e7155fb04a0b6300c (diff)
downloadcaffeonacl-918d9994e4b2e9d82bd7929b0ef1d90393f68b31.tar.gz
caffeonacl-918d9994e4b2e9d82bd7929b0ef1d90393f68b31.tar.bz2
caffeonacl-918d9994e4b2e9d82bd7929b0ef1d90393f68b31.zip
Fix vecLib search order for clients with both the old vecLib framework and the new Accelerate framework
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Modules/FindvecLib.cmake7
1 files changed, 4 insertions, 3 deletions
diff --git a/cmake/Modules/FindvecLib.cmake b/cmake/Modules/FindvecLib.cmake
index 9600da43..46043367 100644
--- a/cmake/Modules/FindvecLib.cmake
+++ b/cmake/Modules/FindvecLib.cmake
@@ -14,9 +14,10 @@ set(__veclib_include_suffix "Frameworks/vecLib.framework/Versions/Current/Header
find_path(vecLib_INCLUDE_DIR vecLib.h
DOC "vecLib include directory"
- PATHS /System/Library/${__veclib_include_suffix}
- /System/Library/Frameworks/Accelerate.framework/Versions/Current/${__veclib_include_suffix}
- /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/Accelerate.framework/Versions/Current/Frameworks/vecLib.framework/Headers/)
+ PATHS /System/Library/Frameworks/Accelerate.framework/Versions/Current/${__veclib_include_suffix}
+ /System/Library/${__veclib_include_suffix}
+ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/Accelerate.framework/Versions/Current/Frameworks/vecLib.framework/Headers/
+ NO_DEFAULT_PATH)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(vecLib DEFAULT_MSG vecLib_INCLUDE_DIR)