no TWNBUILDDIR

This commit is contained in:
veclavtalica 2025-01-14 04:47:53 +03:00
parent 664f123a85
commit b7cb37c06a
6 changed files with 5 additions and 6 deletions

View File

@ -6,7 +6,7 @@ if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Debug) set(CMAKE_BUILD_TYPE Debug)
endif() endif()
add_subdirectory($ENV{TWNROOT} $ENV{TWNBUILDDIR}) add_subdirectory($ENV{TWNROOT} $ENV{TWNROOT}/build)
set(SOURCE_FILES set(SOURCE_FILES
game.c game.c

View File

@ -6,7 +6,7 @@ if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Debug) set(CMAKE_BUILD_TYPE Debug)
endif() endif()
add_subdirectory($ENV{TWNROOT} $ENV{TWNBUILDDIR}) add_subdirectory($ENV{TWNROOT} $ENV{TWNROOT}/build)
set(SOURCE_FILES set(SOURCE_FILES
game.c game.c

View File

@ -6,7 +6,7 @@ if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Debug) set(CMAKE_BUILD_TYPE Debug)
endif() endif()
add_subdirectory($ENV{TWNROOT} $ENV{TWNBUILDDIR}) add_subdirectory($ENV{TWNROOT} $ENV{TWNROOT}/build)
set(SOURCE_FILES set(SOURCE_FILES
game.c game.c

View File

@ -6,7 +6,7 @@ if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Debug) set(CMAKE_BUILD_TYPE Debug)
endif() endif()
add_subdirectory($ENV{TWNROOT} $ENV{TWNBUILDDIR}) add_subdirectory($ENV{TWNROOT} $ENV{TWNROOT}/build)
set(SOURCE_FILES set(SOURCE_FILES
game.c game.c

View File

@ -6,7 +6,7 @@ if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Debug) set(CMAKE_BUILD_TYPE Debug)
endif() endif()
add_subdirectory($ENV{TWNROOT} $ENV{TWNBUILDDIR}) add_subdirectory($ENV{TWNROOT} $ENV{TWNROOT}/build)
add_custom_command( add_custom_command(
OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/luabind.c OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/luabind.c

View File

@ -6,7 +6,6 @@ set +e
exe="$(basename $PWD)" exe="$(basename $PWD)"
toolpath="$(dirname -- "${BASH_SOURCE[0]}")" toolpath="$(dirname -- "${BASH_SOURCE[0]}")"
export TWNROOT=$(realpath "$toolpath"/../) export TWNROOT=$(realpath "$toolpath"/../)
export TWNBUILDDIR=$(realpath "$toolpath"/../build)
case "$1" in case "$1" in
build ) "$toolpath"/build.sh "${@:2}" build ) "$toolpath"/build.sh "${@:2}"