When building SHAD with GMT, during linking I had many errors for undefined references to hwloc functions, which are dependencies of GMT. At first I checked GMT compilation, and Cmake properly detected Hwloc. hwloc was properly installed, so I checked the SHAD compilation and despite it linking to libgmt.a, it did not include the library in the compilation. I think the error is in the compilation of libgmt.a, which should include all of its dependencies statically.
But, for now, the solution was to add
set(GMT_LIBRARIES ${GMT_LIBRARIES} "-lhwloc")
to line 78 of SHAD/cmake/config.cmake
When building SHAD with GMT, during linking I had many errors for undefined references to
hwlocfunctions, which are dependencies of GMT. At first I checked GMT compilation, and Cmake properly detected Hwloc.hwlocwas properly installed, so I checked the SHAD compilation and despite it linking tolibgmt.a, it did not include the library in the compilation. I think the error is in the compilation of libgmt.a, which should include all of its dependencies statically.But, for now, the solution was to add
set(GMT_LIBRARIES ${GMT_LIBRARIES} "-lhwloc")to line 78 of SHAD/cmake/config.cmake