2023-01-17 04:17:34 +08:00
|
|
|
vcpkg_minimum_required(VERSION 2022-10-12) # for ${VERSION}
|
|
|
|
|
2018-03-10 18:59:43 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO eProsima/Fast-CDR
|
2023-01-17 04:17:34 +08:00
|
|
|
REF v${VERSION}
|
2023-09-27 16:23:29 +08:00
|
|
|
SHA512 66040acb563d7c06efb67a1536eb178183776e71a6b54c7e02efbe50ff0926aa24d87fb7869273e985c5c0f2b5d1496d3b1a20f10358373c73171b51c71e7e6a
|
2018-03-10 18:59:43 +08:00
|
|
|
HEAD_REF master
|
2022-12-13 08:00:12 +08:00
|
|
|
PATCHES
|
|
|
|
pdb-file.patch
|
2018-03-10 18:59:43 +08:00
|
|
|
)
|
|
|
|
|
2022-12-13 08:00:12 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH})
|
2018-03-10 18:59:43 +08:00
|
|
|
|
2022-12-13 08:00:12 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-03-10 18:59:43 +08:00
|
|
|
|
2022-12-13 08:00:12 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/fastcdr)
|
2018-10-21 05:17:14 +08:00
|
|
|
|
2018-03-10 18:59:43 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/lib/fastcdr ${CURRENT_PACKAGES_DIR}/debug/lib/fastcdr)
|
2020-10-09 14:31:35 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
2018-03-10 18:59:43 +08:00
|
|
|
|
2023-01-17 04:17:34 +08:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/fastcdr/eProsima_auto_link.h" "(defined(_DLL) || defined(_RTLDLL)) && defined(EPROSIMA_DYN_LINK)" "1")
|
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/fastcdr/fastcdr_dll.h" "defined(FASTCDR_DYN_LINK)" "1")
|
2018-03-10 18:59:43 +08:00
|
|
|
endif()
|
|
|
|
|
2023-01-17 04:17:34 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|