[mman] Move header to mman/sys/mman.h to avoid tricking other libraries

This commit is contained in:
Robert Schumacher 2018-02-25 03:11:23 -08:00
parent 0ad0ca6df2
commit b5ddd440ed
3 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,3 @@
Source: mman
Version: git-f5ff813-1
Version: git-f5ff813-2
Description: A light implementation of the mmap functions for MinGW.

View File

@ -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
View 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})