File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,13 @@ message( STATUS "You have confirmed OpenCL ${OCL_VERSION} is supported in your s
75
75
76
76
# By default test-correctness is linked and tested against ACML library.
77
77
# However, test-correctness can instead use NETLIB as a reference library
78
- set (CORR_TEST_WITH_ACML ON CACHE BOOL "Use ACML library in correctness tests" )
78
+ # On Mac OSX systems, this must be set to OFF for the build to succeed (due to nesting of FindBLAS code)
79
+ if ( APPLE )
80
+ set (CORR_TEST_WITH_ACML OFF CACHE BOOL "Use ACML library in correctness tests" )
81
+ else ( )
82
+ message (STATUS "CORR_TEST_WITH_ACML set to ON" )
83
+ set (CORR_TEST_WITH_ACML ON CACHE BOOL "Use ACML library in correctness tests" )
84
+ endif ( )
79
85
80
86
if ( CMAKE_GENERATOR MATCHES "NMake" )
81
87
option ( NMAKE_COMPILE_VERBOSE "Print compile and link strings to the console" OFF )
@@ -183,13 +189,13 @@ endif()
183
189
# TODO: maybe this could be written using the FindBLAS module in the future
184
190
if ( BUILD_TEST )
185
191
if (NOT CORR_TEST_WITH_ACML )
186
- if (APPLE )
187
- find_library (BLAS_LIBRARIES Accelerate )
192
+ if (APPLE )
193
+ find_library (BLAS_LIBRARIES Accelerate HINTS /System/Library/Frameworks/Accelerate.framework )
188
194
MARK_AS_ADVANCED (BLAS_LIBRARIES )
189
195
message (STATUS "Using Accelerate framework on Mac OS-X" )
190
- else ()
196
+ else ()
191
197
find_package ( Netlib COMPONENTS BLAS REQUIRED )
192
- endif ()
198
+ endif ()
193
199
else ( )
194
200
# Find ACML BLAS implementation
195
201
# platform dependent ACML subdirectory
You can’t perform that action at this time.
0 commit comments