Skip to content

Commit

Permalink
get veclib cblas relative to framework
Browse files Browse the repository at this point in the history
  • Loading branch information
theAeon committed May 12, 2024
1 parent 2d41f0c commit e1989e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 1 addition & 3 deletions src/common/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
#define ARMA_USE_MKL_TYPES
#else

#if defined(__APPLE__)
#include "vecLib/cblas.h"
#elif defined(HAVE_FLEXIBLAS_CBLAS_H)
#if defined(HAVE_FLEXIBLAS_CBLAS_H)
#include "flexiblas/cblas.h"
#elif defined(HAVE_OPENBLAS_CBLAS_H)
#include "openblas/cblas.h"
Expand Down
3 changes: 3 additions & 0 deletions tools/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,9 @@ if(BLAS_LIBRARY_STRING MATCHES ^.*OPENBLAS.*)
set(OPENBLAS_DEFINED "HAVE_OPENBLAS_CBLAS_H")
endif()
endif()
if(APPLE)
target_include_directories(RcppPlanc PRIVATE "${BLAS_LIBRARIES}/Frameworks/vecLib.framework/Headers")
endif()
if(NOT APPLE AND NOT USE_MKL AND NOT USING_OPENBLAS)
set(CBLAS_H_DIR CACHE PATH "Directory containing cblas.h")
if(CBLAS_H_DIR)
Expand Down

0 comments on commit e1989e6

Please sign in to comment.