mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-18 01:47:50 +08:00
d6285bc24b
* [expat] Update the version to 2.2.9(support uwp) * [readosm] Fix expat.lib cannot be found * Remove expat:arm-uwp and expat:x64-uwp from fail list in ci.baseline.txt * [apr-util,io2d,skia] Fix expat cannot be found and also update expat * [many ports] Add supports and fix the regressions * Fix new regressions * Fix typo * [io2d] Update expat patch * [io2d,libkml,skia] Fix expat cannot find and also fix typo * [expat] Remove usage * [libkml,vtk] Update expat patch and fix static build * [wxwidgets] Fix static build caused by expat cannot found * Update as review suggestion * Add Port-Version * Remove evpp:x64-osx=fail from ci.baseline.txt * [wxwidgest] Remove unnecessary spaces * [itk] Fix expat cannot be found * fix cmake test port * [wxwidgets] Update Port-Version Co-authored-by: Nicole Mazzuca <mazzucan@outlook.com>
56 lines
1.9 KiB
CMake
56 lines
1.9 KiB
CMake
set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
|
|
vcpkg_from_gitlab(
|
|
GITLAB_URL https://gitlab.kitware.com/
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO cmake/cmake
|
|
REF
|
|
63a65baf4c343c73b2142078ef0045d3711dea1d
|
|
SHA512
|
|
7874b26adb739649ea3a8c2d8701b44ea348d5d6387e0e2a3dd87494dfeae62084593f88f46d53a161ac24c46a7712489621213b61315593df4dc2ccc728084b
|
|
HEAD_REF master
|
|
)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
-DBUILD_TESTING=OFF
|
|
#-DCMAKE_USE_SYSTEM_LIBRARIES=ON
|
|
-DCMAKE_USE_SYSTEM_LIBARCHIVE=ON
|
|
-DCMAKE_USE_SYSTEM_CURL=ON
|
|
-DCMAKE_USE_SYSTEM_EXPAT=OFF # CMake is not compatible with expat 2.2.9
|
|
-DCMAKE_USE_SYSTEM_ZLIB=ON
|
|
-DCMAKE_USE_SYSTEM_BZIP2=ON
|
|
-DCMAKE_USE_SYSTEM_ZSTD=ON
|
|
-DCMAKE_USE_SYSTEM_FORM=ON
|
|
-DCMAKE_USE_SYSTEM_JSONCPP=ON
|
|
-DCMAKE_USE_SYSTEM_LIBRHASH=OFF # not yet in VCPKG
|
|
-DCMAKE_USE_SYSTEM_LIBUV=ON
|
|
-DBUILD_QtDialog=ON # Just to test Qt with CMake
|
|
)
|
|
|
|
vcpkg_install_cmake(ADD_BIN_TO_PATH)
|
|
vcpkg_copy_pdbs()
|
|
|
|
if(NOT VCPKG_TARGET_IS_OSX)
|
|
set(_tools cmake cmake-gui ctest cpack)
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
|
list(APPEND _tools cmcldeps)
|
|
endif()
|
|
vcpkg_copy_tools(TOOL_NAMES ${_tools} AUTO_CLEAN)
|
|
else()
|
|
# On OSX everything is within a CMake.app folder
|
|
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/tools)
|
|
file(RENAME "${CURRENT_PACKAGES_DIR}/CMake.app" "${CURRENT_PACKAGES_DIR}/tools/CMake.app")
|
|
if(EXISTS "${CURRENT_PACKAGES_DIR}/debug/CMake.app")
|
|
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/tools/debug)
|
|
file(RENAME "${CURRENT_PACKAGES_DIR}/debug/CMake.app" "${CURRENT_PACKAGES_DIR}/tools/debug/CMake.app")
|
|
endif()
|
|
endif()
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin)
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
|
|
|
|
# Handle copyright
|
|
configure_file(${SOURCE_PATH}/Copyright.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|