diff --git a/test/unit/fortran/CMakeLists.txt b/test/unit/fortran/CMakeLists.txt index cf108b67..965f1581 100644 --- a/test/unit/fortran/CMakeLists.txt +++ b/test/unit/fortran/CMakeLists.txt @@ -14,8 +14,7 @@ endif() # Overwrite the init flags chosen by CMake if(${CMAKE_Fortran_COMPILER_ID} MATCHES "GNU") - message("Adding free line length to command line.") - set(CMAKE_Fortran_FLAGS_INIT "-ffree-line-length-none") + add_compile_options("-ffree-line-length-none") endif() if(CAM_SIMA_ENABLE_CODE_COVERAGE)