Skip to content

Commit

Permalink
Merge pull request #26 from vil02/warnings_as_errors
Browse files Browse the repository at this point in the history
  • Loading branch information
SatinWukerORIG authored Sep 29, 2024
2 parents ec8fe1c + 3aecaba commit ef4b15c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
cmake_minimum_required(VERSION 3.16)
project(FortranProject LANGUAGES Fortran)

add_compile_options(-Wall -Wextra -Wpedantic)
add_compile_options(
-Wall
-Wextra
-Wpedantic
-Waliasing
-Wconversion-extra
-Wimplicit-interface
-Wimplicit-procedure
-Wsurprising
-Werror)

function(add_fortran_sources DIR SOURCES)
file(GLOB_RECURSE NEW_SOURCES "${DIR}/*.f90")
Expand Down

0 comments on commit ef4b15c

Please sign in to comment.