Skip to content

Commit

Permalink
Re-add warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-rifkin committed Nov 13, 2023
1 parent 1668331 commit 5d4d92d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ target_link_libraries(
cpptrace::cpptrace
)

target_compile_options(
${target_name}
PRIVATE
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wall -Wextra -Werror=return-type -Wshadow -Wundef>
$<$<CXX_COMPILER_ID:GNU>:-Wuseless-cast -Wnonnull-compare>
$<$<CXX_COMPILER_ID:MSVC>:/W4 /WX /permissive->
)

# ---- Generate Build Info Headers ----

Expand Down

0 comments on commit 5d4d92d

Please sign in to comment.