diff --git a/CMakeLists.txt b/CMakeLists.txt index 66b4e9debc..4b4ec61455 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -481,6 +481,7 @@ set(SOL_INCLUDE_DIR ${OpenMW_SOURCE_DIR}/extern/sol3) set(SOL_CONFIG_DIR ${OpenMW_SOURCE_DIR}/extern/sol_config) include_directories( + ${SOL_CONFIG_DIR} "." BEFORE SYSTEM ${MyGUI_INCLUDE_DIRS} @@ -489,7 +490,6 @@ include_directories( ${BULLET_INCLUDE_DIRS} ${LUA_INCLUDE_DIR} ${SOL_INCLUDE_DIR} - ${SOL_CONFIG_DIR} ${ICU_INCLUDE_DIRS} ) diff --git a/components/lua/luastate.cpp b/components/lua/luastate.cpp index b705dc0f5f..aa2f93d1c7 100644 --- a/components/lua/luastate.cpp +++ b/components/lua/luastate.cpp @@ -15,6 +15,10 @@ #include "scriptscontainer.hpp" #include "utf8.hpp" +#if SOL_IS_ON(SOL_PROPAGATE_EXCEPTIONS) +#error SOL_PROPAGATE_EXCEPTIONS inhibits error checking +#endif + namespace LuaUtil { static VFS::Path::Normalized packageNameToVfsPath(std::string_view packageName, const VFS::Manager& vfs)