Skip to content

Commit b8ee7a5

Browse files
committed
Fixed wrong NAG Fortran compiler flag / definition for strlen type on Linux
1 parent a56dbda commit b8ee7a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMAKE/CheckLAPACKCompilerFlags.cmake

+1-1
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)