diff options
author | Carl Dong <contact@carldong.me> | 2020-08-18 13:04:55 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2020-08-18 15:23:31 -0400 |
commit | b3f541f618fe1f3d44baf6a0dd4299173c81f752 (patch) | |
tree | 004145690a2c3eaaa9123de1deccf3f79a168683 /depends/funcs.mk | |
parent | 8e121e550953711cd03d7b6c221afd065c325c5e (diff) |
depends: Prepend CPPFLAGS to C{,XX}FLAGS for CMake
This is similar to how we do it for qt.mk.
Diffstat (limited to 'depends/funcs.mk')
-rw-r--r-- | depends/funcs.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/depends/funcs.mk b/depends/funcs.mk index 06cfdd4793..00289a0a43 100644 --- a/depends/funcs.mk +++ b/depends/funcs.mk @@ -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)) |