Skip to content

Commit 26db2da

Browse files
committed
Fixed Fortran compiler flags check for nagfor compiler and usage in CBLAS target
1 parent e78a2ad commit 26db2da

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CBLAS/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ if(CMAKE_Fortran_COMPILER)
1414
FortranCInterface_HEADER(${LAPACK_BINARY_DIR}/include/cblas_mangling.h
1515
MACRO_NAMESPACE "F77_"
1616
SYMBOL_NAMESPACE "F77_")
17+
18+
# Check for any necessary platform specific compiler flags
19+
include(CheckLAPACKCompilerFlags)
20+
CheckLAPACKCompilerFlags()
1721
endif()
1822
if(NOT FortranCInterface_GLOBAL_FOUND OR NOT FortranCInterface_MODULE_FOUND)
1923
message(WARNING "Reverting to pre-defined include/cblas_mangling.h")

CMAKE/CheckLAPACKCompilerFlags.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ elseif( CMAKE_Fortran_COMPILER_ID STREQUAL "NAG" )
177177
endif()
178178

179179
# Suppress compiler banner and summary
180+
include(CheckFortranCompilerFlag)
180181
check_fortran_compiler_flag("-quiet" _quiet)
181182
if( _quiet AND NOT ("${CMAKE_Fortran_FLAGS}" MATCHES "[-/]quiet") )
182183
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -quiet")

0 commit comments

Comments
 (0)