Skip to content

Commit a6b3f9d

Browse files
author
Timmy
committed
Merge pull request #98 from clMathLibraries/revert-97-master
Revert "Fix to enable successful build on MacOSX "
2 parents 3107f8a + 15b46fe commit a6b3f9d

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

src/CMakeLists.txt

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,7 @@ option( BUILD_SHARED_LIBS "Build shared libraries" ON )
2727

2828
# By default test-correctness is linked and tested against ACML library.
2929
# However, test-correctness can instead use NETLIB as a reference library
30-
# On Mac OSX systems, this must be set to OFF for the build to succeed (due to nesting of FindBLAS code)
31-
if ( APPLE )
32-
set(CORR_TEST_WITH_ACML OFF CACHE BOOL "Use ACML library in correctness tests")
33-
else ( )
34-
message(STATUS "CORR_TEST_WITH_ACML set to ON")
35-
set(CORR_TEST_WITH_ACML ON CACHE BOOL "Use ACML library in correctness tests")
36-
endif( )
30+
set(CORR_TEST_WITH_ACML ON CACHE BOOL "Use ACML library in correctness tests")
3731

3832
if( CMAKE_GENERATOR MATCHES "NMake" )
3933
option( NMAKE_COMPILE_VERBOSE "Print compile and link strings to the console" OFF )
@@ -127,15 +121,14 @@ endif()
127121
# TODO: maybe this could be written using the FindBLAS module in the future
128122
if( BUILD_TEST )
129123
if(NOT CORR_TEST_WITH_ACML)
130-
if(APPLE)
131-
message(STATUS "Trying to find Accelerate library")
132-
find_library(BLAS_LIBRARIES Accelerate HINTS /System/Library/Frameworks/Accelerate.framework)
124+
if(APPLE)
125+
find_library(BLAS_LIBRARIES Accelerate)
133126
MARK_AS_ADVANCED(BLAS_LIBRARIES)
134127
message(STATUS "Using Accelerate framework on Mac OS-X")
135-
else()
128+
else()
136129
find_package( Netlib COMPONENTS BLAS REQUIRED )
137-
endif()
138-
else( )
130+
endif()
131+
else( )
139132
# Find ACML BLAS implementation
140133
# platform dependent ACML subdirectory
141134
if (WIN32)

0 commit comments

Comments
 (0)