extra_CXXFLAGS
authorDebian Science Team <debian-science-maintainers@lists.alioth.debian.org>
Sun, 11 Oct 2020 17:08:21 +0000 (18:08 +0100)
committerDrew Parsons <dparsons@debian.org>
Sun, 11 Oct 2020 17:08:21 +0000 (18:08 +0100)
===================================================================

Gbp-Pq: Name extra_CXXFLAGS.patch

dolfin/CMakeLists.txt

index fe5420d65d51886143b72ca7f0bdd6572f6c5a52..fb8b53f40c1047b5585926967a6c21be040def3a 100644 (file)
@@ -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<libdir> -l<lib> form
 foreach(_lib ${PKGCONFIG_DOLFIN_LIBS})
   # Add -Wl,option directives