🛠 Fix up some bad defines and CMake paths

This commit is contained in:
ThePhD 2021-10-27 17:37:55 -04:00
parent b43962957f
commit a7da2a8e88
No known key found for this signature in database
GPG Key ID: 1509DB1C0F702BFA
2 changed files with 3 additions and 3 deletions

View File

@ -269,7 +269,7 @@ if (sol2-is-top-level-project)
set_target_properties(${lualib}
PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES ${LUA_INCLUDE_DIR}
INTERFACE_LINK_LIBRARIES ${LUA_SEARCH_DEPENDENCY_LIBS} ${CMAKE_DL_LIBS}
INTERFACE_LINK_LIBRARIES "${LUA_SEARCH_DEPENDENCY_LIBS} ${CMAKE_DL_LIBS}"
IMPORTED_LINK_INTERFACE_LANGUAGES C
IMPORTED_LOCATION ${lualiblocation})
set(LUA_LIBRARIES ${lualib})

View File

@ -368,8 +368,8 @@ TEST_CASE("functions/function_result and protected_function_result",
}
}
#if SOL_IS_OFF(SOL_COMPILER_VCXX_CLANG_I_) \
&& (!defined(SOL2_CI) && !(SOL2_CI) && ((!defined(_M_IX86) || defined(_M_IA64)) || (defined(_WIN64)) || (defined(__LLP64__) || defined(__LP64__))))
#if 0
//&& (!defined(SOL2_CI) && !(SOL2_CI) && ((!defined(_M_IX86) || defined(_M_IA64)) || (defined(_WIN64)) || (defined(__LLP64__) || defined(__LP64__))))
TEST_CASE("functions/safe protected_function_result handlers",
"These tests will (hopefully) not destroy the stack since they are supposed to be mildly safe. Still, run with caution.") {
sol::state lua;