Commit 9a41cf38 authored by Jostein Bratlie's avatar Jostein Bratlie

Defalt build flags updated; Default benchmark build-flag changed to off.

parent 1027bf8e
......@@ -19,24 +19,35 @@ endif()
## Global compiler spesific compile options
SET(CLANG_COMPILE_OPTIONS
# REQUIRED ON
-Weverything -pedantic -Werror
-Wno-c++98-compat -Wno-c++98-compat-pedantic
# REQUIRED ON
# Clang documentation (false-positives)
-Wno-documentation
# C++ interface
-Wno-weak-vtables
# C++ weakness
-Wno-global-constructors
-Wno-exit-time-destructors
-Wno-weak-vtables
# Benchmark
-Wno-padded
-Wno-unused-parameter
-Wno-language-extension-token
-Wno-extra-semi-stmt
)
SET(GCC_COMPILE_OPTIONS
# REQUIRED ON
-pedantic -Wall -Werror
# REQUIRED ON
)
SET(MSVC_COMPILE_OPTIONS
# REQUIRED ON
/Wall /WX /Za
# REQUIRED ON
)
......@@ -56,7 +67,7 @@ if(BUILD_UNITTESTS)
endif(BUILD_UNITTESTS)
# Include benchmarks to build
option(BUILD_BENCHMARKS "Whether or not to build benchmarks!" ON)
option(BUILD_BENCHMARKS "Whether or not to build benchmarks!" OFF)
if(BUILD_BENCHMARKS)
add_subdirectory(tools/benchmark)
endif(BUILD_BENCHMARKS)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment