Skip to content

Commit 95530dd

Browse files
authored
Merge pull request #1028 from ACSimon33/nagfor_strlength_type_on_linux
Fix NAG Fortran compiler flag
2 parents 564dae9 + b8ee7a5 commit 95530dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMAKE/CheckLAPACKCompilerFlags.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ macro(CheckLAPACKCompilerFlags)
126126
get_directory_property(COMP_OPTIONS COMPILE_OPTIONS)
127127

128128
if(NOT("${CMAKE_Fortran_FLAGS};${COMP_OPTIONS}" MATCHES "-abi=64c"))
129-
add_compile_options("$<$<COMPILE_LANGUAGE:Fortran>:FORTRAN_STRLEN=int>")
129+
add_compile_definitions("$<$<COMPILE_LANGUAGE:C>:FORTRAN_STRLEN=int>")
130130
endif()
131131
endif()
132132
endif()

0 commit comments

Comments
 (0)