vcpkg/ports/workflow/portfile.cmake
Thomas1664 d132d128b4
[many ports] Fix cmake warnings (#24706)
* [aubio]

* [bitserializer]

* [crfsuite] Update to 2020-08-27

* format

* [freealut]

* [libe57]

* version

* [libe57] Remove docs

* version

* [libffi]

* [libmodplug]

* [libsodium]

* [libsrtp]

* [libfio]

* [ned14-internal-quickcpplib]

* version string

* version

* version

* [matio] Update to 1.5.23

* [matplusplus] Update to 1.1.0

* [pystring]

* [rdbl]

* [recast]

* [restinfo]

* [sockpp]

* [sziü]

* [taglib]

* [thor]

* [workflow]

* version

* [Forkflow] Fix typo

* version

* [pystring] license

* version

* license

* version

* [sockpp]

* version

* [refl-cpp]

* [pixel] Fix synthax warning

* version

* [matplotplusplus]

* version

* license

* version

* [szip, workflow] Remove docs

* version

* license

* version

* [szip] Fix license install

* version

* [matplotplusplus] Revert update

* version
2022-05-17 11:15:06 -07:00

33 lines
1.1 KiB
CMake

if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO sogou/workflow
REF v0.9.7-win
SHA512 c23b8c1910c4ca5d57fa732e3084f56e17fdfead5561a8eab7be469d8f6081d830555365b2cf74e27956ffa88a6fb284dbde4654b23b130da9fbb4eb404686bd
HEAD_REF windows
)
else()
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO sogou/workflow
REF v0.9.7
SHA512 4866d9cfe2d9ba30f2f7866819ee8f425b91082d7f86994c1194a6b4406e8ee99e22ce6b0bafeb22c5f098f7da30029fb6b12895c2ac45810d33c28d4bfad006
HEAD_REF master
)
endif()
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
DISABLE_PARALLEL_CONFIGURE
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
vcpkg_copy_pdbs()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/doc")
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)