diff options
author | redfish <redfish@galactica.pw> | 2017-10-08 20:45:45 -0400 |
---|---|---|
committer | redfish <redfish@galactica.pw> | 2017-10-08 20:47:50 -0400 |
commit | 2051f89fbe670bc3734cb77f348b35b6540a964c (patch) | |
tree | 7f698e0b067ae90cdeac97ce5196520b60787fcd /src/CMakeLists.txt | |
parent | Merge pull request #2548 (diff) | |
download | monero-2051f89fbe670bc3734cb77f348b35b6540a964c.tar.xz |
cmake: build tests last
Keep -Werror for src, contrib and do not pass it for tests/
Diffstat (limited to '')
-rw-r--r-- | src/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 57ff28bfc..6fb08b645 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -34,6 +34,11 @@ if (WIN32 OR STATIC) add_definitions(-DMINIUPNP_STATICLIB) endif () +# warnings are cleared only for GCC on Linux +if (NOT (MINGW OR APPLE OR FREEBSD OR OPENBSD OR DRAGONFLY)) + add_compile_options("${WARNINGS_AS_ERRORS_FLAG}") # applies only to targets that follow +endif() + function (monero_private_headers group) source_group("${group}\\Private" FILES |