mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-12 19:39:03 +08:00
38 lines
1.1 KiB
CMake
38 lines
1.1 KiB
CMake
include(vcpkg_common_functions)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO emweb/wt
|
|
REF 3.3.7
|
|
SHA512 f179b42eedcfd2e61f26ef92c6aad40c55c76c9a688269c4d5bd55dd48381073d6269d9c2ab305f15ef455616d48183a3fc0ba08c740a8e18318a2ad2fb13826
|
|
HEAD_REF master
|
|
)
|
|
|
|
vcpkg_apply_patches(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PATCHES ${CMAKE_CURRENT_LIST_DIR}/add-disable-boost-autolink-option.patch
|
|
)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
OPTIONS
|
|
-DSHARED_LIBS=ON
|
|
-DENABLE_SSL=ON
|
|
-DBUILD_EXAMPLES=OFF
|
|
-DENABLE_POSTGRES=OFF
|
|
-DENABLE_FIREBIRD=OFF
|
|
-DENABLE_MYSQL=OFF
|
|
-DENABLE_QT4=OFF
|
|
-DBOOST_DYNAMIC=ON
|
|
-DDISABLE_BOOST_AUTOLINK=ON
|
|
-DENABLE_LIBWTTEST=OFF
|
|
)
|
|
vcpkg_install_cmake()
|
|
|
|
# There is no way to suppress installation of the headers and resource files in debug build.
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/wt RENAME copyright)
|
|
vcpkg_copy_pdbs()
|