#49711: [cpp-netlib][0.11.2][new port] -------------------------+-------------------------------- Reporter: nikkoara@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: cpp-netlib | -------------------------+-------------------------------- Comment (by raimue@…): Replying to [comment:8 nikkoara@…]:
The CMake infrastructure of the cpp-netlib project builds either shared libraries or static libraries. It does not contain provisions to build both. The selection hinges entirely on the CMake macro BUILD_SHARED_LIBS: if on, it builds shared libs, etc. If this is considered to be a limitation from the Macports framework pov there is little I can do about it.
If this port builds either static or shared libraries, it does not make sense to provide two variants. This would only be one choice, which could be addressed with a single `+static` variant. Although in this case, I do not see any reason to provide static libraries at all. I would just default to shared libraries and leave out the static libraries completely.
Compilation failed on my system. I am no CMake expert and have no idea where to look further for this. I did not see any mention of the problem in `CMakeOutput.log`, but if required I could provide it.
Could you please attach that and your invocation of ports? I would like to take a look at it.
I attached both `CMakeOutput.log` and `main.log`. I do not know what other parameters could be different on my system if it worked for you. -- Ticket URL: <https://trac.macports.org/ticket/49711#comment:9> MacPorts <https://www.macports.org/> Ports system for OS X