aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpaul-reilly <paul-reilly@users.noreply.github.com>2020-02-06 19:07:19 +0000
committerGitHub <noreply@github.com>2020-02-06 11:07:19 -0800
commitaaddcb1afb3b2db595ba9d6cab5ddf0e9450a7c2 (patch)
tree247b70a973c5b9a13bf93c47772e73118b846887
parent6f2fba24dc5ceb339464e205eb8e7b2afcc31efa (diff)
downloadvcpkg-aaddcb1afb3b2db595ba9d6cab5ddf0e9450a7c2.tar.gz
vcpkg-aaddcb1afb3b2db595ba9d6cab5ddf0e9450a7c2.zip
Add post-build usage info for Lua port. (#9934)
* Add post-build usage info for Lua port. * Fix CMake command that moves info file * Update Lua package version number
-rw-r--r--ports/lua/CONTROL2
-rw-r--r--ports/lua/portfile.cmake2
-rw-r--r--ports/lua/usage9
3 files changed, 12 insertions, 1 deletions
diff --git a/ports/lua/CONTROL b/ports/lua/CONTROL
index eeb26e412..9e22f3ea2 100644
--- a/ports/lua/CONTROL
+++ b/ports/lua/CONTROL
@@ -1,5 +1,5 @@
Source: lua
-Version: 5.3.5-2
+Version: 5.3.5-3
Homepage: https://www.lua.org
Description: a powerful, fast, lightweight, embeddable scripting language
diff --git a/ports/lua/portfile.cmake b/ports/lua/portfile.cmake
index b107c6cf9..42dea0b98 100644
--- a/ports/lua/portfile.cmake
+++ b/ports/lua/portfile.cmake
@@ -51,4 +51,6 @@ vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/lua)
# Handle copyright
file(COPY ${CMAKE_CURRENT_LIST_DIR}/COPYRIGHT DESTINATION ${CURRENT_PACKAGES_DIR}/share/lua/copyright)
+# Handle post-build CMake instructions
+file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/lua)
vcpkg_copy_pdbs()
diff --git a/ports/lua/usage b/ports/lua/usage
new file mode 100644
index 000000000..8a11e20b9
--- /dev/null
+++ b/ports/lua/usage
@@ -0,0 +1,9 @@
+Use this package via the module FindLua that comes with CMake. To use in your CMakeLists.txt:
+
+ include(FindLua)
+ find_package(lua REQUIRED)
+ target_link_libraries(main PRIVATE ${LUA_LIBRARIES})
+ target_include_directories(main PRIVATE ${LUA_INCLUDE_DIR})
+
+For more information about the variables set by this module, please see:
+ https://cmake.org/cmake/help/latest/module/FindLua.html \ No newline at end of file