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
7575
7676# By default test-correctness is linked and tested against ACML library.
7777# 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 ( )
7985
8086if ( CMAKE_GENERATOR MATCHES "NMake" )
8187 option ( NMAKE_COMPILE_VERBOSE "Print compile and link strings to the console" OFF )
@@ -183,13 +189,13 @@ endif()
183189# TODO: maybe this could be written using the FindBLAS module in the future
184190if ( BUILD_TEST )
185191 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 )
188194 MARK_AS_ADVANCED (BLAS_LIBRARIES)
189195 message (STATUS "Using Accelerate framework on Mac OS-X" )
190- else ()
196+ else ()
191197 find_package ( Netlib COMPONENTS BLAS REQUIRED )
192- endif ()
198+ endif ()
193199 else ( )
194200 # Find ACML BLAS implementation
195201 # platform dependent ACML subdirectory
You can’t perform that action at this time.
0 commit comments