Debian Codegraph @

debian/patches/extra_CXXFLAGS.patch

raw
1 Index: dolfin/dolfin/CMakeLists.txt
2 ===================================================================
3 --- dolfin.orig/dolfin/CMakeLists.txt
4 +++ dolfin/dolfin/CMakeLists.txt
5 @@ -307,6 +307,10 @@ endforeach()
6 string(REPLACE ";" " " PKG_CXXFLAGS "${CMAKE_CXX_FLAGS}")
7 string(REPLACE ";" " " PKG_LINKFLAGS "${CMAKE_EXE_LINKER_FLAGS}")
8
9 +# DOLFIN_EXTRA_CXX_FLAGS are used for the build (by adding to CMAKE_CXX_FLAGS)
10 +# but should not be included in the pkgconfig file (i.e. don't add to PKG_CXXFLAGS above)
11 +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${DOLFIN_EXTRA_CXX_FLAGS}")
12 +
13 # Convert libraries to -L<libdir> -l<lib> form
14 foreach(_lib ${PKGCONFIG_DOLFIN_LIBS})
15 # Add -Wl,option directives