Skip to content
Snippets Groups Projects
Commit 4ee6f9f8 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

Compiler setup; Enable unreachable code warnings.

parent 62b41010
No related branches found
No related tags found
No related merge requests found
......@@ -85,9 +85,9 @@ function(ogs_add_library targetName)
# OR does not work with cotire
# $<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>,
# $<CXX_COMPILER_ID:GNU>>:-Wall -Wextra>
$<$<CXX_COMPILER_ID:Clang>:-Wall -Wextra>
$<$<CXX_COMPILER_ID:AppleClang>:-Wall -Wextra>
$<$<CXX_COMPILER_ID:GNU>:-Wall -Wextra>
$<$<CXX_COMPILER_ID:Clang>:-Wall -Wextra -Wunreachable-code>
$<$<CXX_COMPILER_ID:AppleClang>:-Wall -Wextra -Wunreachable-code>
$<$<CXX_COMPILER_ID:GNU>:-Wall -Wextra -Wunreachable-code>
$<$<CXX_COMPILER_ID:MSVC>:/W3>)
if(BUILD_SHARED_LIBS)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment