diff --git a/CMakeLists.txt b/CMakeLists.txt index dc8f1b38..b7e9763c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -86,6 +86,10 @@ target_link_libraries( ${PROJECT_NAME} PRIVATE ${JULIA_LIBRARY} MPI::MPI_C ) # Set appropriate compile flags target_compile_options( ${PROJECT_NAME} PUBLIC "-fPIC" ) target_compile_options( ${PROJECT_NAME} PRIVATE -Wall -Wextra -Werror) +# Require C11 standard with GNU extensions for C files +target_compile_options( ${PROJECT_NAME} PRIVATE $<$:-std=gnu11>) +# Require Fortran 2018 standard for Fortran files +target_compile_options( ${PROJECT_NAME} PRIVATE $<$:-std=f2018>) diff --git a/README.md b/README.md index 88a3def5..f07d49e9 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,8 @@ Currently, libtrixi is only developed and tested for Linux. Furthermore, a local installation of `MPI`, [`t8code`](https://github.com/DLR-AMR/t8code), and [`Julia`](https://julialang.org/downloads/platform/) is required. +Furthermore, a C11-compatible C compiler and a Fortran 2018-compatible Fortran compiler are +necessary to build the C library and its Fortran bindings. ### Get the sources diff --git a/docs/src/index.md b/docs/src/index.md index 691e8140..5996e4bd 100644 --- a/docs/src/index.md +++ b/docs/src/index.md @@ -20,6 +20,8 @@ Currently, libtrixi is only developed and tested for Linux. Furthermore, a local installation of `MPI`, [`t8code`](https://github.com/DLR-AMR/t8code), and [`Julia`](https://julialang.org/downloads/platform/) is required. +Furthermore, a C11-compatible C compiler and a Fortran 2018-compatible Fortran compiler are +necessary to build the C library and its Fortran bindings. ### Get the sources