File: extra_CXXFLAGS.patch

package info (click to toggle)
fenics-dolfinx 1%3A0.9.0-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,376 kB
  • sloc: cpp: 33,701; python: 22,338; makefile: 230; sh: 170; xml: 55
file content (13 lines) | stat: -rw-r--r-- 579 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- a/cpp/dolfinx/CMakeLists.txt
+++ b/cpp/dolfinx/CMakeLists.txt
@@ -324,6 +324,10 @@
 string(REPLACE ";" " " PKG_CXXFLAGS "${CMAKE_CXX_FLAGS}")
 string(REPLACE ";" " " PKG_LINKFLAGS "${CMAKE_EXE_LINKER_FLAGS}")
 
+# DOLFINX_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} ${DOLFINX_EXTRA_CXX_FLAGS}")
+
 # Convert libraries to -L<libdir> -l<lib> form
 foreach(_lib ${PKGCONFIG_DOLFINX_LIBS})
   # Add -Wl,option directives