mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 19:09:00 +08:00
[luafilesystem] Fixes header file lfs.h not found (#41193)
This commit is contained in:
parent
18b56e71d8
commit
76d153790c
@ -10,6 +10,7 @@ add_library(lfs src/lfs.h src/lfs.c src/lfs.def)
|
|||||||
|
|
||||||
target_include_directories(lfs PRIVATE ${LFS_INCLUDES})
|
target_include_directories(lfs PRIVATE ${LFS_INCLUDES})
|
||||||
target_link_libraries(lfs PRIVATE ${LFS_LIBRARIES})
|
target_link_libraries(lfs PRIVATE ${LFS_LIBRARIES})
|
||||||
|
target_include_directories(lfs INTERFACE $<INSTALL_INTERFACE:include/luafilesystem>)
|
||||||
|
|
||||||
install(TARGETS lfs
|
install(TARGETS lfs
|
||||||
EXPORT "unofficial-${PROJECT_NAME}-targets"
|
EXPORT "unofficial-${PROJECT_NAME}-targets"
|
||||||
@ -32,6 +33,8 @@ write_basic_package_version_file(
|
|||||||
COMPATIBILITY SameMajorVersion
|
COMPATIBILITY SameMajorVersion
|
||||||
)
|
)
|
||||||
|
|
||||||
|
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/src/lfs.h" DESTINATION "include/luafilesystem")
|
||||||
|
|
||||||
install(
|
install(
|
||||||
FILES "${CMAKE_CURRENT_BINARY_DIR}/unofficial-${PROJECT_NAME}-config.cmake"
|
FILES "${CMAKE_CURRENT_BINARY_DIR}/unofficial-${PROJECT_NAME}-config.cmake"
|
||||||
DESTINATION "share/unofficial-${PROJECT_NAME}"
|
DESTINATION "share/unofficial-${PROJECT_NAME}"
|
||||||
|
@ -29,8 +29,5 @@ file(REMOVE_RECURSE
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Handle copyright
|
# Handle copyright
|
||||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
||||||
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
||||||
|
|
||||||
# Allow empty include directory
|
|
||||||
set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "luafilesystem",
|
"name": "luafilesystem",
|
||||||
"version": "1.8.0",
|
"version": "1.8.0",
|
||||||
"port-version": 6,
|
"port-version": 7,
|
||||||
"description": "LuaFileSystem is a Lua library developed to complement the set of functions related to file systems offered by the standard Lua distribution.",
|
"description": "LuaFileSystem is a Lua library developed to complement the set of functions related to file systems offered by the standard Lua distribution.",
|
||||||
"homepage": "https://github.com/keplerproject/luafilesystem",
|
"homepage": "https://github.com/keplerproject/luafilesystem",
|
||||||
"supports": "!uwp",
|
"supports": "!uwp",
|
||||||
|
@ -5606,7 +5606,7 @@
|
|||||||
},
|
},
|
||||||
"luafilesystem": {
|
"luafilesystem": {
|
||||||
"baseline": "1.8.0",
|
"baseline": "1.8.0",
|
||||||
"port-version": 6
|
"port-version": 7
|
||||||
},
|
},
|
||||||
"luajit": {
|
"luajit": {
|
||||||
"baseline": "2023-01-04",
|
"baseline": "2023-01-04",
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
{
|
{
|
||||||
"versions": [
|
"versions": [
|
||||||
|
{
|
||||||
|
"git-tree": "00b7638338af5a3a2d95c3c9b1ed870ed0cfb9fc",
|
||||||
|
"version": "1.8.0",
|
||||||
|
"port-version": 7
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"git-tree": "4b474bdcc3f49eef949ba79ad3294556e39af778",
|
"git-tree": "4b474bdcc3f49eef949ba79ad3294556e39af778",
|
||||||
"version": "1.8.0",
|
"version": "1.8.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user