ENH: make find blas work if there is no fortran compiler
This commit is contained in:
parent
5b5cd07d8d
commit
ebe5eba1a0
|
@ -65,7 +65,10 @@ macro(Check_Fortran_Libraries LIBRARIES _prefix _name _flags _list)
|
||||||
# Test this combination of libraries.
|
# Test this combination of libraries.
|
||||||
set(CMAKE_REQUIRED_LIBRARIES ${_flags} ${${LIBRARIES}})
|
set(CMAKE_REQUIRED_LIBRARIES ${_flags} ${${LIBRARIES}})
|
||||||
#message("DEBUG: CMAKE_REQUIRED_LIBRARIES = ${CMAKE_REQUIRED_LIBRARIES}")
|
#message("DEBUG: CMAKE_REQUIRED_LIBRARIES = ${CMAKE_REQUIRED_LIBRARIES}")
|
||||||
|
get_property(_LANGUAGES_ GLOBAL PROPERTY ENABLED_LANGUAGES)
|
||||||
|
if(_LANGUAGES_ MATCHES Fortran)
|
||||||
check_fortran_function_exists(${_name} ${_prefix}${_combined_name}_WORKS)
|
check_fortran_function_exists(${_name} ${_prefix}${_combined_name}_WORKS)
|
||||||
|
endif(_LANGUAGES_ MATCHES Fortran)
|
||||||
set(CMAKE_REQUIRED_LIBRARIES)
|
set(CMAKE_REQUIRED_LIBRARIES)
|
||||||
mark_as_advanced(${_prefix}${_combined_name}_WORKS)
|
mark_as_advanced(${_prefix}${_combined_name}_WORKS)
|
||||||
set(_libraries_work ${${_prefix}${_combined_name}_WORKS})
|
set(_libraries_work ${${_prefix}${_combined_name}_WORKS})
|
||||||
|
|
Loading…
Reference in New Issue