diff options
author | Alin Elena <alinm.elena@gmail.com> | 2008-07-22 11:15:31 (GMT) |
---|---|---|
committer | Alin Elena <alinm.elena@gmail.com> | 2008-07-22 11:15:31 (GMT) |
commit | a57fc5585a30197b281e5b3fe851787ba4677267 (patch) | |
tree | 52d447c01068cef11aa49e28dbdc1ce060e34b9a /Modules/CheckFortranFunctionExists.cmake | |
parent | 6db292d6562fbd879811742c64ef4f84954a5c44 (diff) | |
download | CMake-a57fc5585a30197b281e5b3fe851787ba4677267.zip CMake-a57fc5585a30197b281e5b3fe851787ba4677267.tar.gz CMake-a57fc5585a30197b281e5b3fe851787ba4677267.tar.bz2 |
ENH: FindBLAS.cmake, FindLAPACK.cmake modules were redesigned so now you have three new variables BLA_VENDOR (you can specify the VENDOR), BLA_STATIC (gets the static version of libs), BLA_F95 (gets the fortran 95 interface). BLA_VENDOR can be specified as an environment variable. Intel mkls libs need FindThreads to be found correctly so you will need to enable the C/CXX
Diffstat (limited to 'Modules/CheckFortranFunctionExists.cmake')
-rw-r--r-- | Modules/CheckFortranFunctionExists.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/CheckFortranFunctionExists.cmake b/Modules/CheckFortranFunctionExists.cmake index 3ff5853..4985881 100644 --- a/Modules/CheckFortranFunctionExists.cmake +++ b/Modules/CheckFortranFunctionExists.cmake @@ -24,7 +24,7 @@ macro(CHECK_FORTRAN_FUNCTION_EXISTS FUNCTION VARIABLE) program TESTFortran external ${FUNCTION} call ${FUNCTION}() - end + end program TESTFortran " ) try_compile(${VARIABLE} @@ -33,6 +33,7 @@ macro(CHECK_FORTRAN_FUNCTION_EXISTS FUNCTION VARIABLE) CMAKE_FLAGS "${CHECK_FUNCTION_EXISTS_ADD_LIBRARIES}" OUTPUT_VARIABLE OUTPUT ) +# message(STATUS "${OUTPUT}") if(${VARIABLE}) set(${VARIABLE} 1 CACHE INTERNAL "Have Fortran function ${FUNCTION}") message(STATUS "Looking for Fortran ${FUNCTION} - found") |