[Buildroot] [PATCH v2 2/4] Add CMAKETARGETS infrastructure for CMake packages

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Tue Jan 25 23:25:16 UTC 2011


On Sat, 15 Jan 2011 21:53:26 +0100
Bjørn Forsman <bjorn.forsman at gmail.com> wrote:

> +$(2)_INSTALL_HOST_OPT		?= DESTDIR=$$(HOST_DIR) install

$(2)_INSTALL_HOST_OPT		?= install

should be sufficient if:

> +		-DCMAKE_INSTALL_PREFIX="/usr" \

is replaced by:

> +		-DCMAKE_INSTALL_PREFIX="$(HOST_DIR)/usr" \

for host packages. I think, like for autotools packages, it is more
technically correct to set the installation prefix to $(HOST_DIR)/usr
rather than /usr.

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com



More information about the buildroot mailing list