Skip to content

Commit 0d2fb3a

Browse files
author
Timmy
committed
if BUILD_TEST is not set fortran compiler should not be required.
1 parent 57e1e65 commit 0d2fb3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ if( CMAKE_GENERATOR MATCHES "NMake" )
9595
endif( )
9696
endif( )
9797

98-
# If we are on linux, and we wish to link with the netlib BLAS implementation, we need to have a valid fortran compiler
99-
if( NOT CORR_TEST_WITH_ACML AND NOT WIN32 AND NOT APPLE )
98+
# If we are on linux, and we wish to link with the netlib BLAS implementation when BUILD_TEST is ON, we need to have a valid fortran compiler
99+
if(BUILD_TEST AND NOT CORR_TEST_WITH_ACML AND NOT WIN32 AND NOT APPLE)
100100
project(clBLAS Fortran C CXX )
101101
else( )
102102
project(clBLAS C CXX)

0 commit comments

Comments
 (0)