Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Jun 2018 11:37:45 +0200
From:      Adriaan de Groot <adridg@freebsd.org>
To:        yuri@freebsd.org
Cc:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   Re: svn commit: r472575 - in head/devel/cpp2py: . files
Message-ID:  <3686747.Erkxd33iFv@beastie.bionicmutton.org>
In-Reply-To: <201806162320.w5GNKtvI066975@repo.freebsd.org>
References:  <201806162320.w5GNKtvI066975@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart10924919.k2njD6izWF
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="utf-8"

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]
--nextPart10924919.k2njD6izWF
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part.
Content-Transfer-Encoding: 7Bit

-----BEGIN PGP SIGNATURE-----

iHUEABEIAB0WIQTVFBoRsP760fy+Jisy7lRaPghTTwUCWyYr6QAKCRAy7lRaPghT
TxlIAP9XrDpME1guHkSfU7+lvgjEjB4iiPXZBPHEiPA5dolriAD/VtRod0EQfXrT
H8VgJU6LNqOAwaPZ7aa2uM3fM1dQ9pg=
=ozj6
-----END PGP SIGNATURE-----

--nextPart10924919.k2njD6izWF--






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3686747.Erkxd33iFv>