From 3a643d04c4570e5fa11a219bc8b2d6dc8c6029f9 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Sat, 17 Dec 2022 16:13:35 +0100 Subject: [PATCH] only valid/needed for GNU --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d0a95fa23..c1466ebdd 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -18,7 +18,7 @@ endif() foreach(solver-source ${solver-sources}) file(READ ${solver-source} content) string(FIND "${content}" "CHKERR" found) - if(NOT ${found} EQUAL -1) + if((NOT ${found} EQUAL -1) AND (CMAKE_Fortran_COMPILER_ID STREQUAL "GNU")) set_source_files_properties(${solver-source} PROPERTIES COMPILE_FLAGS "-ffree-line-length-none") endif() endforeach()