libgmp is linked to even when GMP is disabled
I noticed this while trying to compile and link static libraries and executables on macOS. Initially I tried to supply the path to the static copy of libgmp via -DGMP_LIB
, but the gmsh
executable was still linking against the shared copy. I then disabled GMP with -DENABLE_GMP=0
, to no avail. Of interest is that cmake -LA src
finds the static copy of libgmp. I have not done any digging, but I suspect that this is used for the static libgmsh (if requested) while -lgmp
is set for the link flags for the gmsh
executable regardless.
Gmsh version is 4.12.2.