svn commit: r472575 - in head/devel/cpp2py: . files
Adriaan de Groot
adridg at freebsd.org
Sun Jun 17 09:38:02 UTC 2018
For completeness, I'll throw in an explanation of "correct cmake file paths"
(which Yuri is correct in using).
On Sunday, 17 June 2018 01:20:55 CEST Yuri Victorovich wrote:
> Log:
> devel/cpp2py: Correct cmake file paths
> -install(FILES ${CMAKE_CURRENT_BINARY_DIR}/Cpp2PyConfig.cmake DESTINATION
> ${CMAKE_INSTALL_PREFIX}/share/cmake)
> ++install(FILES ${CMAKE_CURRENT_BINARY_DIR}/Cpp2PyConfig.cmake DESTINATION
> ${CMAKE_INSTALL_PREFIX}/lib/cmake/cpp2py)
> +lib/cmake/cpp2py/Cpp2PyConfig.cmake
> -share/cmake/Modules/Cpp2PyConfig.cmake
CMake looks for modules in various places. Many CMake-based software projects
(and some others) install modules to help CMake find those pieces of software
-- for consumers of that software, for instance.
The CMake port itself installs stuff into ${LOCALBASE}/share/cmake, and in
particular (normal settings), /usr/local/share/cmake/Modules are where the
modules-shipped-with-CMake live.
Most other software installs to /usr/local/lib/cmake/ (no extra Modules/). The
"big" consumers of CMake, KDE and Qt, but also small stuff like yaml-cpp,
install their CMake modules there.
For CMake itself it doesn't matter: it searches many places for modules, see
e.g. cmake --help-command find_package .
I guess on FreeBSD we could say we have a preference for keeping share/cmake
as "the place for CMake itself" and lib/cmake as "the place for third-party
modules". So thanks for tidying this up, Yuri.
(fwiw, pkg which /usr/local/share/cmake/Modules/* | grep -v 'package cmake-3'
tells me there's some leakage; not enough to go an update packages Just
Because, but something to keep in mind if touching a port anyway)
[ade]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freebsd.org/pipermail/svn-ports-head/attachments/20180617/c61950e9/attachment.sig>
More information about the svn-ports-head
mailing list