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

This is similar to how we do it for qt.mk.
This commit is contained in:
Carl Dong 2020-08-18 13:04:55 -04:00
parent 8e121e5509
commit b3f541f618
No known key found for this signature in database
GPG key ID: 0CC52153197991A5

View file

@ -158,9 +158,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))