dwcaress / MB-System

MB-System is an open source software package for the processing and display of bathymetry and backscatter imagery data derived from multibeam, interferometry, and sidescan sonars.
https://www.mbari.org/products/research-software/mb-system/
Other
123 stars 42 forks source link

cmake build breaks when --prefix install option is used #1433

Closed klheadley closed 6 months ago

klheadley commented 6 months ago

The variables that set share content paths (CMAKE_INSTALL_MANPAGES, CMAKE_INSTALL_DOC, etc.) use absolute paths to /usr/local... This breaks cmake --install

--prefix because it tries to install the files to /usr/local... as non-root (and isn't where they are intended to go).

In this change set: Change share content install variables to relative paths Use appropriate destination in share/CMakeLists.txt

Tested on macOS Monterey and Ubuntu 22.04