From: Debian Science Team Date: Mon, 11 Feb 2019 08:14:25 +0000 (+0000) Subject: extra_CXXFLAGS X-Git-Tag: archive/raspbian/2019.2.0_git20200629.946dbd3-8+rpi1~1^2^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=02f79e8a188113aae262158c8f5667720bf9c08b;p=dolfin.git extra_CXXFLAGS =================================================================== Gbp-Pq: Name extra_CXXFLAGS.patch --- diff --git a/dolfin/CMakeLists.txt b/dolfin/CMakeLists.txt index fe5420d..fb8b53f 100644 --- a/dolfin/CMakeLists.txt +++ b/dolfin/CMakeLists.txt @@ -307,6 +307,10 @@ endforeach() string(REPLACE ";" " " PKG_CXXFLAGS "${CMAKE_CXX_FLAGS}") string(REPLACE ";" " " PKG_LINKFLAGS "${CMAKE_EXE_LINKER_FLAGS}") +# DOLFIN_EXTRA_CXX_FLAGS are used for the build (by adding to CMAKE_CXX_FLAGS) +# but should not be included in the pkgconfig file (i.e. don't add to PKG_CXXFLAGS above) +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${DOLFIN_EXTRA_CXX_FLAGS}") + # Convert libraries to -L -l form foreach(_lib ${PKGCONFIG_DOLFIN_LIBS}) # Add -Wl,option directives