diff options
Diffstat (limited to 'vcpkg/ports/luv/fix-find-lua-compat53.patch')
| -rw-r--r-- | vcpkg/ports/luv/fix-find-lua-compat53.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/vcpkg/ports/luv/fix-find-lua-compat53.patch b/vcpkg/ports/luv/fix-find-lua-compat53.patch new file mode 100644 index 0000000..c5c4d60 --- /dev/null +++ b/vcpkg/ports/luv/fix-find-lua-compat53.patch @@ -0,0 +1,28 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index e63a431..1f144c8 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -231,13 +231,7 @@ if(APPLE) + # ) + endif() + +-if(NOT LUA_COMPAT53_DIR) +- set(LUA_COMPAT53_DIR deps/lua-compat-5.3) +-endif() +-if(DEFINED ENV{LUA_COMPAT53_DIR}) +- set(LUA_COMPAT53_DIR $ENV{LUA_COMPAT53_DIR}) +-endif() +-include_directories(${LUA_COMPAT53_DIR}/c-api) ++find_path(LUA_COMPAT53_INCLUDE_DIRS "compat-5.3.h") + + if(WIN32) + add_definitions(-DLUA_BUILD_AS_DLL -DLUA_LIB) +@@ -263,6 +257,7 @@ foreach(TARGET_NAME ${ACTIVE_TARGETS}) + else() + target_link_libraries(${TARGET_NAME} ${LIBUV_LIBRARIES}) + endif() ++ target_include_directories(${TARGET_NAME} PRIVATE ${LUA_COMPAT53_INCLUDE_DIRS}) + endforeach() + + if (NOT LUA) + |