| 1 |
# @HEADER |
| 2 |
# ***************************************************************************** |
| 3 |
# TriBITS: Tribal Build, Integrate, and Test System |
| 4 |
# |
| 5 |
# Copyright 2013-2016 NTESS and the TriBITS contributors. |
| 6 |
# SPDX-License-Identifier: BSD-3-Clause |
| 7 |
# ***************************************************************************** |
| 8 |
# @HEADER |
| 9 |
|
| 10 |
# Including this file will result in the BLAS name mangling to be determined. |
| 11 |
# |
| 12 |
# NOTE: You should determine the overall Fortran name mangling first before |
| 13 |
# you include this file. |
| 14 |
|
| 15 |
if (F77_FUNC) |
| 16 |
set(F77_BLAS_MANGLE_DEFAULT ${F77_FUNC}) |
| 17 |
else() |
| 18 |
set(F77_BLAS_MANGLE_DEFAULT "UNDEFINED") |
| 19 |
endif() |
| 20 |
if(WIN32 AND NOT CYGWIN) |
| 21 |
set(F77_BLAS_MANGLE_DEFAULT "${F77_FUNC}") |
| 22 |
endif() |
| 23 |
|
| 24 |
|
| 25 |
# Set options so that users can change these! |
| 26 |
|
| 27 |
set(F77_BLAS_MANGLE ${F77_BLAS_MANGLE_DEFAULT} CACHE STRING |
| 28 |
"Name mangling to call functions in the provided BLAS library") |
| 29 |
|
| 30 |
mark_as_advanced(F77_BLAS_MANGLE) |