Opened 15 years ago
Last modified 13 years ago
#19781 closed enhancement
modify cmake Modules for MacPorts prefix — at Initial Version
Reported by: | dweber@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.7.1 |
Keywords: | FindITK.cmake cmake modules | Cc: | |
Port: | cmake |
Description
I'm working on an InsightToolkit port that will install into a non-standard MacPorts install path. I've discovered that the defaults in the cmake Modules may not pick up the MacPort installations. For example, in /opt/local/share/cmake-2.6/Modules/FindITK.cmake, we could modify it to the following:
# Look in standard UNIX install locations. /opt/local/lib/InsightToolkit /opt/local/lib/InsightToolkit-3.12 /usr/local/lib/InsightToolkit /usr/lib/InsightToolkit
I was able to get this result with a command line like this:
cat /opt/local/share/cmake-2.6/Modules/FindITK.cmake | sed -e 's|/usr/local/lib/InsightToolkit|/opt/local/lib/InsightToolkit\n\t/opt/local/lib/InsightToolkit-3.12\n\t/usr/local/lib/InsightToolkit|g'
I suppose other tweaks like this could be a part of the post-destroot for the cmake port. The goal is to allow any MacPort installation to rely on cmake modules to pick up other MacPort libraries automatically, and in preference (with precedence) to anything similar installed outside of ${prefix} on the system.
Best regards, Darren
Note: See
TracTickets for help on using
tickets.