Skip to content

Commit dc304d8

Browse files
committed
refactored CMakeLists.txt in BUILD_TEST block, added test for OSX detection to turn off CORR_TEST_WITH_ACML
1 parent 03d7e7e commit dc304d8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,13 @@ 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-
set(CORR_TEST_WITH_ACML ON CACHE BOOL "Use ACML library in correctness tests")
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( )
3137

3238
if( CMAKE_GENERATOR MATCHES "NMake" )
3339
option( NMAKE_COMPILE_VERBOSE "Print compile and link strings to the console" OFF )

0 commit comments

Comments
 (0)