diff --git a/apps/demos/bunnymark/CMakeLists.txt b/apps/demos/bunnymark/CMakeLists.txt index 49866e8..44fe767 100644 --- a/apps/demos/bunnymark/CMakeLists.txt +++ b/apps/demos/bunnymark/CMakeLists.txt @@ -6,7 +6,7 @@ if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE Debug) endif() -add_subdirectory($ENV{TWNROOT} $ENV{TWNBUILDDIR}) +add_subdirectory($ENV{TWNROOT} $ENV{TWNROOT}/build) set(SOURCE_FILES game.c diff --git a/apps/demos/platformer/CMakeLists.txt b/apps/demos/platformer/CMakeLists.txt index 6d05e1c..79bbb90 100644 --- a/apps/demos/platformer/CMakeLists.txt +++ b/apps/demos/platformer/CMakeLists.txt @@ -6,7 +6,7 @@ if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE Debug) endif() -add_subdirectory($ENV{TWNROOT} $ENV{TWNBUILDDIR}) +add_subdirectory($ENV{TWNROOT} $ENV{TWNROOT}/build) set(SOURCE_FILES game.c diff --git a/apps/demos/scenery/CMakeLists.txt b/apps/demos/scenery/CMakeLists.txt index 8e89f40..e399176 100644 --- a/apps/demos/scenery/CMakeLists.txt +++ b/apps/demos/scenery/CMakeLists.txt @@ -6,7 +6,7 @@ if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE Debug) endif() -add_subdirectory($ENV{TWNROOT} $ENV{TWNBUILDDIR}) +add_subdirectory($ENV{TWNROOT} $ENV{TWNROOT}/build) set(SOURCE_FILES game.c diff --git a/apps/template/CMakeLists.txt b/apps/template/CMakeLists.txt index a3f68ce..55566d7 100644 --- a/apps/template/CMakeLists.txt +++ b/apps/template/CMakeLists.txt @@ -6,7 +6,7 @@ if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE Debug) endif() -add_subdirectory($ENV{TWNROOT} $ENV{TWNBUILDDIR}) +add_subdirectory($ENV{TWNROOT} $ENV{TWNROOT}/build) set(SOURCE_FILES game.c diff --git a/apps/twnlua/CMakeLists.txt b/apps/twnlua/CMakeLists.txt index 95135cf..e779d6e 100644 --- a/apps/twnlua/CMakeLists.txt +++ b/apps/twnlua/CMakeLists.txt @@ -6,7 +6,7 @@ if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE Debug) endif() -add_subdirectory($ENV{TWNROOT} $ENV{TWNBUILDDIR}) +add_subdirectory($ENV{TWNROOT} $ENV{TWNROOT}/build) add_custom_command( OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/luabind.c diff --git a/bin/twn b/bin/twn index 95bfdfa..c6e5c1d 100755 --- a/bin/twn +++ b/bin/twn @@ -6,7 +6,6 @@ set +e exe="$(basename $PWD)" toolpath="$(dirname -- "${BASH_SOURCE[0]}")" export TWNROOT=$(realpath "$toolpath"/../) -export TWNBUILDDIR=$(realpath "$toolpath"/../build) case "$1" in build ) "$toolpath"/build.sh "${@:2}"