tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: cmake and CONFIGURE_DIR



On Sun, 19 Nov 2023 14:30:11 +0100
Thomas Klausner <wiz%NetBSD.org@localhost> wrote:

> On Sun, Nov 19, 2023 at 01:28:02PM +0000, nia wrote:
> > How does the new cmake/build.mk system work with non-root
> > configure directories?
> > 
> > I have a package with CMakeLists.txt in the "gtk" subdirectory.
> > 
> > Before, you'd set CONFIGURE_DIRS and BUILD_DIRS and then
> > it'd run the cmake script in that directory.
> > 
> > The new cmake system seems to have CONFIGURE_DIR, but setting
> > it seems to do nothing and the package complains about missing
> > CMakeLists.txt.
> 
> It does something, from devel/cmake/build.mk:
> 
> cmake-configure:
>         ${RUN} cd ${WRKSRC}/${CONFIGURE_DIR} && \
> 
>  Thomas

It has ${WRKSRC} as its last argument and that is taken as
path-to-source , see the cmake docs[1].
Does removing that make it work for you nia?

Niclas

1: https://cmake.org/cmake/help/latest/manual/cmake.1.html


Home | Main Index | Thread Index | Old Index