diff options
| author | Carl Dong <[email protected]> | 2020-08-18 13:04:55 -0400 |
|---|---|---|
| committer | Carl Dong <[email protected]> | 2020-08-18 15:23:31 -0400 |
| commit | b3f541f618fe1f3d44baf6a0dd4299173c81f752 (patch) | |
| tree | 004145690a2c3eaaa9123de1deccf3f79a168683 | |
| parent | depends: Cleanup CMake invocation (diff) | |
| download | discoin-b3f541f618fe1f3d44baf6a0dd4299173c81f752.tar.xz discoin-b3f541f618fe1f3d44baf6a0dd4299173c81f752.zip | |
depends: Prepend CPPFLAGS to C{,XX}FLAGS for CMake
This is similar to how we do it for qt.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 06cfdd479..00289a0a4 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)) |