CMake issue: binary (needed during build) links againts /opt/local/lib/foo.dylib

Mojca Miklavec mojca at macports.org
Thu Sep 29 18:30:16 PDT 2016


Hi,

Under
https://svn.macports.org/repository/macports/users/mojca/ports/tex/miktex

I have a preliminary port for MikTeX with the following problem:
    https://sourceforge.net/p/miktex/bugs/2485/

The developer was fast in fixing many issues, but this one is
something that probably doesn't affect linux users, so he cannot
easily test.

The problem is that a binary that is needed as part of the build
procedure gets built and links against /opt/local/lib/something.dylib.
Usually that would be desired, but in this case the library
something.dylib cannot be found before the package is installed. The
build system should thus first give the libraries the id of the build
path and only fix that at the very end of the build procedure, but
it's not entirely clear to me how to properly achieve that.

Does anyone with a deeper understanding of CMake build system have any
idea what to fix?

Thank you very much,
    Mojca


More information about the macports-dev mailing list