Skip to content

Commit

Permalink
fixed supplying warning flags
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed May 20, 2020
1 parent 30a40ff commit 58c1c8c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ install(
add_library(warnings INTERFACE)
# warnings
if(CMAKE_COMPILER_IS_GNUCXX)
target_compile_definitions(warnings "-Wall -Wshadow -Wno-unknown-pragmas -Wextra -Wno-unused-parameter -Wno-unused-local-typedefs")
target_compile_options(warnings INTERFACE "-Wall -Wshadow -Wno-unknown-pragmas -Wextra -Wno-unused-parameter -Wno-unused-local-typedefs")
elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel")
target_compile_definitions(warnings "-Wall -Wshadow")
target_compile_options(warnings INTERFACE "-Wall -Wshadow")
elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "PGI")
target_compile_definitions(warnings "-Minform=inform")
target_compile_options(warnings INTERFACE "-Minform=inform")
endif()

# Executables
Expand Down

0 comments on commit 58c1c8c

Please sign in to comment.