dolfin.pc does not respect library order
Bug #892793 reported by
Garth Wells
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
DOLFIN |
Fix Released
|
Medium
|
Garth Wells |
Bug Description
The library order on dolfin.pc is not consistent with the order use by cmake.
Related branches
Changed in dolfin: | |
milestone: | none → 1.0-rc1 |
Changed in dolfin: | |
status: | New → Confirmed |
assignee: | nobody → Garth Wells (garth-wells) |
importance: | Undecided → Medium |
Changed in dolfin: | |
milestone: | 1.0-rc1 → trunk |
Changed in dolfin: | |
status: | Confirmed → Fix Committed |
milestone: | trunk → 1.0.1 |
Changed in dolfin: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Which order is that?
Is the problem the reversal of the order of libs when PKG_LINKFLAGS is build in dolfin/ CMakeLists. txt?
# Convert libraries to -L<libdir> -l<lib> form TARGET_ LINK_LIBRARIES} ) a|so|dylib| dll)" "-L\\1 -l\\2"
foreach(_lib ${DOLFIN_
string(REGEX REPLACE "(.?:?/[^ ]*)/lib([^ ]*)\\.(
_linkflags
"${_lib}"
)
# Only add libraries that matches the form -L<libdir> -l<lib> PKG_LINKFLAGS "${_linkflags} ${PKG_LINKFLAGS}") ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~~~ ~~~~~~~ ~
if ("${_linkflags}" MATCHES "-L.+ -l.+")
set(
~~~~
endif()
endforeach()