From b8ee7a533e9091a92b56c2cc8d71c955676eb5e9 Mon Sep 17 00:00:00 2001 From: Simon Maertens Date: Thu, 20 Jun 2024 16:11:08 +0100 Subject: [PATCH] Fixed wrong NAG Fortran compiler flag / definition for strlen type on Linux --- CMAKE/CheckLAPACKCompilerFlags.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMAKE/CheckLAPACKCompilerFlags.cmake b/CMAKE/CheckLAPACKCompilerFlags.cmake index 2502c5a6d0..7747564e29 100644 --- a/CMAKE/CheckLAPACKCompilerFlags.cmake +++ b/CMAKE/CheckLAPACKCompilerFlags.cmake @@ -126,7 +126,7 @@ macro(CheckLAPACKCompilerFlags) get_directory_property(COMP_OPTIONS COMPILE_OPTIONS) if(NOT("${CMAKE_Fortran_FLAGS};${COMP_OPTIONS}" MATCHES "-abi=64c")) - add_compile_options("$<$:FORTRAN_STRLEN=int>") + add_compile_definitions("$<$:FORTRAN_STRLEN=int>") endif() endif() endif()