summaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2016-11-13 15:11:46 -0800
committerJohn Wiegley <johnw@newartisans.com>2016-11-13 15:11:46 -0800
commit1107f489fadb1ad34f0c01c6b6a1e47306557b54 (patch)
tree7428853cf2cd7de1487ebf8c78674c3a85db436d /src/CMakeLists.txt
parentc384530c6f3157915a8c871ea860d132e6695c83 (diff)
downloadfork-ledger-1107f489fadb1ad34f0c01c6b6a1e47306557b54.tar.gz
fork-ledger-1107f489fadb1ad34f0c01c6b6a1e47306557b54.tar.bz2
fork-ledger-1107f489fadb1ad34f0c01c6b6a1e47306557b54.zip
Change src/CMakeLists.txt to notice c++ as g++
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt33
1 files changed, 19 insertions, 14 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 65e58edb..46e1f8e4 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -138,20 +138,24 @@ 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 "cxx"))
+ if ((CMAKE_CXX_COMPILER MATCHES "clang") OR
+ (CMAKE_CXX_COMPILER MATCHES "clang++") OR
+ (CMAKE_CXX_COMPILER MATCHES "cxx"))
add_definitions(
- -Weverything
- -Wno-disabled-macro-expansion
- -Wno-padded
- -Wno-weak-vtables
- -Wno-exit-time-destructors
- -Wno-global-constructors
- -Wno-switch-enum
- -Wno-missing-prototypes
- -Wno-missing-noreturn
- -Wno-unused-parameter
- -Wno-c++98-compat
- -fno-limit-debug-info)
+ # -Weverything
+ # -Wno-disabled-macro-expansion
+ # -Wno-padded
+ # -Wno-weak-vtables
+ # -Wno-exit-time-destructors
+ # -Wno-global-constructors
+ # -Wno-switch-enum
+ # -Wno-missing-prototypes
+ # -Wno-missing-noreturn
+ # -Wno-unused-parameter
+ # -Wno-c++98-compat
+ # -fno-limit-debug-info
+ --system-header-prefix=include/boost/
+ --system-header-prefix=boost/)
macro(ADD_PCH_RULE _header_filename _src_list _other_srcs)
set(_pch_filename "${_header_filename}.pch")
@@ -189,7 +193,8 @@ 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\\+\\+")
+ elseif ((CMAKE_CXX_COMPILER MATCHES "g\\+\\+") OR
+ (CMAKE_CXX_COMPILER MATCHES "c\\+\\+"))
set(GXX_WARNING_FLAGS
-pedantic
-Wall