Uses/cmake.mk: Make it possible to override {BUILD,INSTALL}_WRKSRC with :outsource.

This is particularly useful if a port only needs to build a subdirectory of
the source tree (in which case they can set BUILD_WRKSRC to
"${CONFIGURE_WRKSRC}/foo/bar").
This commit is contained in:
Raphael Kubo da Costa 2016-01-18 18:27:47 +00:00
parent b90ee00ac4
commit f5876c4a59
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=406603

View File

@ -106,8 +106,8 @@ CMAKE_SOURCE_PATH?= ${WRKSRC}
.if ${cmake_ARGS:Moutsource}
_CMAKE_MSG= "===> Performing out-of-source build"
CONFIGURE_WRKSRC= ${WRKDIR}/.build
BUILD_WRKSRC= ${CONFIGURE_WRKSRC}
INSTALL_WRKSRC= ${CONFIGURE_WRKSRC}
BUILD_WRKSRC?= ${CONFIGURE_WRKSRC}
INSTALL_WRKSRC?= ${CONFIGURE_WRKSRC}
.endif
.if !target(do-configure)