revert "Handle ALL_TARGET and INSTALL_TARGET in cmake module"

It breaks a number of ports at the fake step:

Unknown argument -t
Usage: cmake --install <dir> [options]
This commit is contained in:
naddy 2023-01-28 22:03:46 +00:00
parent 51fc6cccd4
commit 4f1d2838ba
3 changed files with 6 additions and 16 deletions

View File

@ -33,22 +33,6 @@ MODCMAKE_INSTALL_TARGET = cd ${WRKBUILD} && exec ${SETENV} ${MAKE_ENV} \
MODCMAKE_TEST_TARGET = cd ${WRKBUILD} && exec ${SETENV} ${ALL_TEST_ENV} \
ctest ${_MAKE_VERBOSE} -j ${MAKE_JOBS}
# Default targets are only known after configure, see cmake-buildsystem(7) and
# cmake-properties(7) BUILDSYSTEM_TARGETS.
# Overrule bsd.port.mk defaults.
ALL_TARGET ?= # empty
INSTALL_TARGET ?= # empty
# Only pass explicitly set targets.
# Do not quote, cmake(1) -t takes multiple target arguments.
.if !empty(ALL_TARGET)
MODCMAKE_BUILD_TARGET += -t ${ALL_TARGET}
.endif
.if !empty(INSTALL_TARGET)
MODCMAKE_INSTALL_TARGET += -t ${INSTALL_TARGET}
.endif
.if !target(do-build)
do-build:
@${MODCMAKE_BUILD_TARGET}

View File

@ -39,6 +39,9 @@ CONFIGURE_ARGS += -DCMAKE_CXX_STANDARD=17
ALL_TARGET = torrent-rasterbar \
python-libtorrent
do-build:
@${MODCMAKE_BUILD_TARGET} -t ${ALL_TARGET}
# build whatever is left (+200 test files)
pre-test:
@${MODCMAKE_BUILD_TARGET}

View File

@ -93,6 +93,9 @@ post-patch:
browser/BrowserSettingsWidget.cpp \
browser/NativeMessageInstaller.cpp
do-build:
@${MODCMAKE_BUILD_TARGET} -t ${ALL_TARGET}
# build whatever is left (ca. 200 GUI test files)
pre-test:
@${MODCMAKE_BUILD_TARGET}