Mk/Uses/cmake

Tobias C. Berner tcberner at gmail.com
Sat Sep 29 20:15:57 BST 2018


Moin moin

cmake.mk passes

-DCMAKE_INSTALL_PREFIX:PATH="${CMAKE_INSTALL_PREFIX}"
to cmake. The value of CMAKE_INSTALL_PREFIX is set (also in cmake.mk) to
                        CMAKE_INSTALL_PREFIX?=  ${PREFIX}

That is, set  PREFIX, and it /should/ work -- note that most stuff will
fail with PREFIX!=LOCALBASE.


mfg Tobias



On Sat, 29 Sep 2018 at 09:59, blubee blubeeme <gurenchan at gmail.com> wrote:

> Hello
>
> I think that I might have found a bug or there's some issues in my setup.
>
> I am running poudriere and I add these flags to a Makefile:
> CMAKE_ARGS+= -DCMAKE_INSTALL_PREFIX=${LOCALBASE}/dir
>
> checking in
> pre-build:
>     echo ${CMAKE_ARGS}
>
> shows that /usr/local/dir is passed to cmake.
>
> After building cmake totally ignores /usr/local/dir and only /usr/local is
> in the generated .build/CMakeCahce.txt file
>
> I found a workaround by setting CMAKE_INSTALL_PREFIX= ${LOCALBASE}/dir
>
> Is this the proper behavior?
>
> Best,
> Owen
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-freebsd/attachments/20180929/a7779551/attachment.html>


More information about the kde-freebsd mailing list