зеркало из https://github.com/microsoft/vcpkg.git
[mman] Move header to mman/sys/mman.h to avoid tricking other libraries
This commit is contained in:
Родитель
0ad0ca6df2
Коммит
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)
|
||||
|
||||
|
|
|
@ -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})
|
Загрузка…
Ссылка в новой задаче