depends: Prepend CPPFLAGS to C{,XX}FLAGS for CMake

This is similar to how we do it for qt.mk.

(cherry picked from commit bitcoin/bitcoin@b3f541f618)
This commit is contained in:
Carl Dong 2020-08-18 13:04:55 -04:00 committed by Jack Grigg
parent 737478475f
commit 34dc8df2e3
1 changed files with 2 additions and 2 deletions

View File

@ -174,9 +174,9 @@ $(1)_autoconf += LDFLAGS="$$($(1)_ldflags)"
endif
$(1)_cmake=env CC="$$($(1)_cc)" \
CFLAGS="$$($(1)_cflags)" \
CFLAGS="$$($(1)_cppflags) $$($(1)_cflags)" \
CXX="$$($(1)_cxx)" \
CXXFLAGS="$$($(1)_cxxflags)" \
CXXFLAGS="$$($(1)_cppflags) $$($(1)_cxxflags)" \
cmake -DCMAKE_INSTALL_PREFIX:PATH="$$($($(1)_type)_prefix)"
ifneq ($($(1)_type),build)
ifneq ($(host),$(build))