From 9c2bc01d525989363831799b8ace78dcd7c024aa Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 13 Nov 2016 16:05:05 -0800 Subject: Further simplifications src/CMakeLists.txt --- src/CMakeLists.txt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/CMakeLists.txt') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 6d35aff3..71d9478a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -138,9 +138,7 @@ set(LEDGER_INCLUDES ${PROJECT_BINARY_DIR}/system.hh) if (CMAKE_BUILD_TYPE STREQUAL "Debug") - if ((CMAKE_CXX_COMPILER MATCHES "clang") OR - (CMAKE_CXX_COMPILER MATCHES "clang\\+\\+") OR - (CMAKE_CXX_COMPILER MATCHES "cxx")) + if (CMAKE_CXX_COMPILER MATCHES "clang\\+\\+") add_definitions( # -Weverything # -Wno-disabled-macro-expansion @@ -155,6 +153,7 @@ if (CMAKE_BUILD_TYPE STREQUAL "Debug") # -Wno-c++98-compat # -fno-limit-debug-info -Wno-\#pragma-messages + -Wno-unused-local-typedef --system-header-prefix=include/boost/ --system-header-prefix=boost/) @@ -194,8 +193,7 @@ if (CMAKE_BUILD_TYPE STREQUAL "Debug") DEPENDS ${_header_filename}) endmacro(ADD_PCH_RULE _header_filename _src_list _other_srcs) - elseif ((CMAKE_CXX_COMPILER MATCHES "g\\+\\+") OR - (CMAKE_CXX_COMPILER MATCHES "c\\+\\+")) + elseif (CMAKE_CXX_COMPILER MATCHES "g\\+\\+") set(GXX_WARNING_FLAGS -pedantic -Wall -- cgit v1.2.3