eckit: fix underlinking (#33739)
This commit is contained in:
parent
cc84ab1e92
commit
01a5788517
1 changed files with 8 additions and 0 deletions
|
@ -137,4 +137,12 @@ def cmake_args(self):
|
|||
# (the LAPACK backend is still built though):
|
||||
args.append(self.define("ENABLE_LAPACK", "linalg=lapack" in self.spec))
|
||||
|
||||
if "+admin" in self.spec and "+termlib" in self.spec["ncurses"]:
|
||||
# Make sure that libeckit_cmd is linked to a library that resolves 'setupterm',
|
||||
# 'tputs', etc. That is either libncurses (when 'ncurses~termlib') or libtinfo (when
|
||||
# 'ncurses+termlib'). CMake considers the latter only if CURSES_NEED_NCURSES is set to
|
||||
# TRUE. Note that the installation of eckit does not fail without this but the building
|
||||
# of a dependent package (e.g. fdb) might fail due to the undefined references.
|
||||
args.append(self.define("CURSES_NEED_NCURSES", True))
|
||||
|
||||
return args
|
||||
|
|
Loading…
Reference in a new issue