Skip to content

Commit

Permalink
Merge pull request BVLC#5824 from ek9852/master
Browse files Browse the repository at this point in the history
[cmake] fix hardcode xcode path
  • Loading branch information
shelhamer authored Aug 6, 2017
2 parents 7ad1342 + 315641b commit 86d451e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmake/Modules/FindvecLib.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ endif()

set(__veclib_include_suffix "Frameworks/vecLib.framework/Versions/Current/Headers")

exec_program(xcode-select ARGS -print-path OUTPUT_VARIABLE CMAKE_XCODE_DEVELOPER_DIR)
find_path(vecLib_INCLUDE_DIR vecLib.h
DOC "vecLib include directory"
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/MacOSX.sdk/System/Library/Frameworks/Accelerate.framework/Versions/Current/Frameworks/vecLib.framework/Headers/
${CMAKE_XCODE_DEVELOPER_DIR}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Accelerate.framework/Versions/Current/Frameworks/vecLib.framework/Headers/
NO_DEFAULT_PATH)

include(FindPackageHandleStandardArgs)
Expand Down

0 comments on commit 86d451e

Please sign in to comment.