[libevent] Fix build on Linux (#3426)

This commit is contained in:
Arkady Shapkin 2018-05-18 20:57:31 +03:00 committed by Robert Schumacher
parent b68da8a9dc
commit a90d78293b

View File

@ -21,6 +21,7 @@ vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA PREFER_NINJA
OPTIONS OPTIONS
-DEVENT_INSTALL_CMAKE_DIR:PATH=share/libevent
-DEVENT__DISABLE_BENCHMARK=ON -DEVENT__DISABLE_BENCHMARK=ON
-DEVENT__DISABLE_TESTS=ON -DEVENT__DISABLE_TESTS=ON
-DEVENT__DISABLE_REGRESS=ON -DEVENT__DISABLE_REGRESS=ON
@ -31,7 +32,7 @@ vcpkg_install_cmake()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
vcpkg_fixup_cmake_targets(CONFIG_PATH cmake) vcpkg_fixup_cmake_targets()
vcpkg_copy_pdbs() vcpkg_copy_pdbs()
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/libevent) file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/libevent)