Skip to content

Commit 76d1537

Browse files
authored
[luafilesystem] Fixes header file lfs.h not found (microsoft#41193)
1 parent 18b56e7 commit 76d1537

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
lines changed

ports/luafilesystem/CMakeLists.txt

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ add_library(lfs src/lfs.h src/lfs.c src/lfs.def)
1010

1111
target_include_directories(lfs PRIVATE ${LFS_INCLUDES})
1212
target_link_libraries(lfs PRIVATE ${LFS_LIBRARIES})
13+
target_include_directories(lfs INTERFACE $<INSTALL_INTERFACE:include/luafilesystem>)
1314

1415
install(TARGETS lfs
1516
EXPORT "unofficial-${PROJECT_NAME}-targets"
@@ -32,6 +33,8 @@ write_basic_package_version_file(
3233
COMPATIBILITY SameMajorVersion
3334
)
3435

36+
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/src/lfs.h" DESTINATION "include/luafilesystem")
37+
3538
install(
3639
FILES "${CMAKE_CURRENT_BINARY_DIR}/unofficial-${PROJECT_NAME}-config.cmake"
3740
DESTINATION "share/unofficial-${PROJECT_NAME}"

ports/luafilesystem/portfile.cmake

+1-4
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,5 @@ file(REMOVE_RECURSE
2929
)
3030

3131
# Handle copyright
32-
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
32+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
3333
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
34-
35-
# Allow empty include directory
36-
set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)

ports/luafilesystem/vcpkg.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "luafilesystem",
33
"version": "1.8.0",
4-
"port-version": 6,
4+
"port-version": 7,
55
"description": "LuaFileSystem is a Lua library developed to complement the set of functions related to file systems offered by the standard Lua distribution.",
66
"homepage": "https://github.com/keplerproject/luafilesystem",
77
"supports": "!uwp",

versions/baseline.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5606,7 +5606,7 @@
56065606
},
56075607
"luafilesystem": {
56085608
"baseline": "1.8.0",
5609-
"port-version": 6
5609+
"port-version": 7
56105610
},
56115611
"luajit": {
56125612
"baseline": "2023-01-04",

versions/l-/luafilesystem.json

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"versions": [
3+
{
4+
"git-tree": "00b7638338af5a3a2d95c3c9b1ed870ed0cfb9fc",
5+
"version": "1.8.0",
6+
"port-version": 7
7+
},
38
{
49
"git-tree": "4b474bdcc3f49eef949ba79ad3294556e39af778",
510
"version": "1.8.0",

0 commit comments

Comments
 (0)