Skip to content

CMake language standard settings #54

@ivan-pi

Description

@ivan-pi

vapaa/CMakeLists.txt

Lines 24 to 25 in 3a5ba0b

set(CMAKE_Fortran_STANDARD 2018)
set(CMAKE_Fortran_STANDARD_REQUIRED ON)

These settings don't exist AFAIK. The ones which do exist are shown here: https://cmake.org/cmake/help/latest/prop_tgt/LANG_STANDARD.html

There is a CMake issue open for this (https://gitlab.kitware.com/cmake/cmake/-/issues/25006), but the current opinion is this ain't really needed.

If you'd like to add the conformity checkings flags, I'd recommend a generator expression instead:e

$<$<FORTRAN_COMPILER_ID:GNU>:-std=f2018>
$<$<FORTRAN_COMPILER_ID:Intel>:-stand f2018>
$<$<FORTRAN_COMPILER_ID:NAG>:-f2018>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions