Standard install location for CMake find-package files

Dave Allured - NOAA Affiliate dave.allured at noaa.gov
Fri Apr 25 02:55:20 UTC 2025


I am working on a port that tries to install its own Find<package>.cmake
file.  Is there a standard install directory, or "best" directory, to
install such .cmake files?

A search of my current MacPorts installs finds multiple choices within
$prefix; such as lib/cmake/<package>, lib/cmake/<package>/modules,
libexec/<package>/lib/cmake, share/<package>/src, share/cmake/Modules, and
share/<package>/cmake.  There is also an include/<package> example that I
don't trust because it is on the broken port that I am trying to fix.

I did not find guidance in MacPorts docs or Trac tickets.  I hope someone
on the dev list has experience in this.  Any advice?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20250424/be617246/attachment.htm>


More information about the macports-dev mailing list