File tree 1 file changed +6
-7
lines changed
1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -354,12 +354,11 @@ endmacro(find_mkl_libs)
354
354
355
355
# ========== main program
356
356
357
- set (lapack_cray false )
358
- if (DEFINED ENV{CRAYPE_VERSION})
359
- set (lapack_cray true )
357
+ if (NOT DEFINED LAPACK_CRAY AND DEFINED ENV{CRAYPE_VERSION})
358
+ set (LAPACK_CRAY true )
360
359
endif ()
361
360
362
- if (NOT (lapack_cray
361
+ if (NOT (LAPACK_CRAY
363
362
OR OpenBLAS IN_LIST LAPACK_FIND_COMPONENTS
364
363
OR Netlib IN_LIST LAPACK_FIND_COMPONENTS
365
364
OR Atlas IN_LIST LAPACK_FIND_COMPONENTS
@@ -390,7 +389,7 @@ elseif(OpenBLAS IN_LIST LAPACK_FIND_COMPONENTS)
390
389
openblas_libs()
391
390
elseif (AOCL IN_LIST LAPACK_FIND_COMPONENTS)
392
391
aocl_libs()
393
- elseif (lapack_cray )
392
+ elseif (LAPACK_CRAY )
394
393
# LAPACK is implicitly part of Cray PE LibSci, use Cray compiler wrapper.
395
394
endif ()
396
395
@@ -445,14 +444,14 @@ endif()
445
444
endfunction (lapack_check)
446
445
447
446
# --- Check library links
448
- if (lapack_cray OR LAPACK_LIBRARY)
447
+ if (LAPACK_CRAY OR LAPACK_LIBRARY)
449
448
lapack_check()
450
449
endif ()
451
450
452
451
453
452
include (FindPackageHandleStandardArgs)
454
453
455
- if (lapack_cray )
454
+ if (LAPACK_CRAY )
456
455
find_package_handle_standard_args(LAPACK HANDLE_COMPONENTS
457
456
REQUIRED_VARS LAPACK_links
458
457
)
You can’t perform that action at this time.
0 commit comments