2020-01-15 04:28:06 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO OpenEtherCATsociety/SOEM
|
2023-06-14 11:51:38 +08:00
|
|
|
REF a901500618405760a564e64a6816705e29f50f9f
|
|
|
|
SHA512 d554bc1c3780b1a81402a7fda490f516caba6bd943a28482740b5c9d97e4273a11546e79c92796487ee9901f568cbf1b329d4e1c1d32602fdce0088a77c82443
|
2020-01-15 04:28:06 +08:00
|
|
|
HEAD_REF master
|
2021-07-15 03:46:05 +08:00
|
|
|
PATCHES
|
2020-01-15 04:28:06 +08:00
|
|
|
winpcap.patch
|
2021-07-15 03:46:05 +08:00
|
|
|
disable-werror.patch
|
2020-01-15 04:28:06 +08:00
|
|
|
)
|
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2023-06-14 11:51:38 +08:00
|
|
|
OPTIONS
|
|
|
|
-DBUILD_TESTS=OFF
|
2020-01-15 04:28:06 +08:00
|
|
|
)
|
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-01-15 04:28:06 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2023-10-11 06:01:19 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH "share/soem/cmake")
|
|
|
|
|
2020-01-15 04:28:06 +08:00
|
|
|
file(REMOVE_RECURSE
|
2023-03-02 02:39:29 +08:00
|
|
|
"${CURRENT_PACKAGES_DIR}/bin"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/bin"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/include"
|
2023-06-14 11:51:38 +08:00
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/share"
|
2023-03-02 02:39:29 +08:00
|
|
|
)
|
2020-01-15 04:28:06 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2023-06-14 11:51:38 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|