From fe404cd56f13a599d7dc7e22c2e76e771e67ccb7 Mon Sep 17 00:00:00 2001 From: Mattia Basaglia Date: Thu, 30 Jul 2015 16:46:49 +0200 Subject: [PATCH] Ensure ./all compile-map uses cmake to build q3map2 --- misc/tools/all/xonotic.subr | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/misc/tools/all/xonotic.subr b/misc/tools/all/xonotic.subr index 6f66d62e..778f9104 100644 --- a/misc/tools/all/xonotic.subr +++ b/misc/tools/all/xonotic.subr @@ -10,7 +10,14 @@ case "$cmd" in fi if ! [ -f "netradiant/install/q3map2" ] ; then msg "q3map2 needed! Building netradiant..." - make -C netradiant BUILD=native install/q3map2 + if ! [ -d "netradiant/install" ] ; then + mkdir "netradiant/install" + fi + ( + cd "netradiant/install" + cmake -D CMAKE_BUILD_TYPE=Release .. + make q3map2 + ) fi for mapfile in "$@"; do mapfile="data/xonotic-maps.pk3dir/maps/$mapfile.map" -- 2.39.2