diff --git a/CMakeLists.txt b/CMakeLists.txt index d980ab5..df24afe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,10 @@ cmake_minimum_required(VERSION 3.18) project(orch) find_package("Lua") -# XXX Make sure it was found? + +if(NOT LUA_FOUND) + message(FATAL_ERROR "No Lua installation found; please install Lua") +endif() set(LUA_MODLIBDIR "/usr/local/lib/lua/${LUA_VERSION_MAJOR}.${LUA_VERSION_MINOR}" CACHE PATH "Path to install lua dynamic library modules into") diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 5aacd29..b90353d 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,3 +1,2 @@ -message("${CMAKE_BINARY_DIR}") add_custom_target(check COMMAND env ORCHBIN="${CMAKE_BINARY_DIR}/src/orch" ORCHLUA_PATH="${CMAKE_SOURCE_DIR}/lib" sh "${CMAKE_CURRENT_SOURCE_DIR}/basic_test.sh")