aboutsummaryrefslogtreecommitdiff
path: root/contrib/CMakeLists.txt
diff options
context:
space:
mode:
authorredfish <redfish@galactica.pw>2017-10-08 20:45:45 -0400
committerredfish <redfish@galactica.pw>2017-10-08 20:47:50 -0400
commit2051f89fbe670bc3734cb77f348b35b6540a964c (patch)
tree7f698e0b067ae90cdeac97ce5196520b60787fcd /contrib/CMakeLists.txt
parentMerge pull request #2548 (diff)
downloadmonero-2051f89fbe670bc3734cb77f348b35b6540a964c.tar.xz
cmake: build tests last
Keep -Werror for src, contrib and do not pass it for tests/
Diffstat (limited to 'contrib/CMakeLists.txt')
-rw-r--r--contrib/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/CMakeLists.txt b/contrib/CMakeLists.txt
index 7bd411aed..e7c501ed2 100644
--- a/contrib/CMakeLists.txt
+++ b/contrib/CMakeLists.txt
@@ -26,5 +26,10 @@
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 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()
+
add_subdirectory(epee)