mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 02:11:39 +08:00
[mman] Move header to mman/sys/mman.h to avoid tricking other libraries
This commit is contained in:
parent
0ad0ca6df2
commit
b5ddd440ed
@ -1,3 +1,3 @@
|
||||
Source: mman
|
||||
Version: git-f5ff813-1
|
||||
Version: git-f5ff813-2
|
||||
Description: A light implementation of the mmap functions for MinGW.
|
||||
|
@ -21,6 +21,10 @@ vcpkg_configure_cmake(
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/include/mman)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/include/sys ${CURRENT_PACKAGES_DIR}/include/mman/sys)
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/mman)
|
||||
file(INSTALL ${SOURCE_PATH}/README.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/mman RENAME copyright)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
|
||||
|
4
ports/mman/usage
Normal file
4
ports/mman/usage
Normal file
@ -0,0 +1,4 @@
|
||||
The mman.h header deployed by mman is placed in mman/sys/mman.h to avoid accidental inclusion.
|
||||
|
||||
find_path(MMAN_DIR NAMES sys/mman.h PATH_SUFFIXES mman)
|
||||
target_include_directories(main PRIVATE ${MMAN_DIR})
|
Loading…
Reference in New Issue
Block a user