2017-11-27 07:17:02 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2021-04-13 00:59:28 +08:00
|
|
|
REPO finos/OpenMAMA
|
2023-04-18 06:31:08 +08:00
|
|
|
REF "OpenMAMA-${VERSION}-release"
|
2023-04-06 07:28:17 +08:00
|
|
|
SHA512 bf6a9343546ace80b8a72072f97aa85988a3d0d047e2a60d05de638afce89b4e4f2bcae28b8e93ca808e8c0e4a83de9035ff785f69f9b4ac4ccd2616e792fa08
|
2017-11-27 07:17:02 +08:00
|
|
|
HEAD_REF next
|
2023-04-18 06:31:08 +08:00
|
|
|
PATCHES
|
|
|
|
git-no-tags.diff
|
|
|
|
fix-dependencies.diff
|
2017-11-27 07:17:02 +08:00
|
|
|
)
|
|
|
|
|
2023-04-18 06:31:08 +08:00
|
|
|
vcpkg_find_acquire_program(FLEX)
|
|
|
|
vcpkg_find_acquire_program(GIT)
|
|
|
|
|
2023-03-02 02:39:14 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-08-22 06:42:42 +08:00
|
|
|
OPTIONS
|
2023-04-06 07:28:17 +08:00
|
|
|
"-DOPENMAMA_DEPENDENCY_ROOT=${CURRENT_INSTALLED_DIR}"
|
2020-08-22 06:42:42 +08:00
|
|
|
-DINSTALL_RUNTIME_DEPENDENCIES=OFF
|
2023-04-18 06:31:08 +08:00
|
|
|
"-DFLEX_EXECUTABLE=${FLEX}"
|
|
|
|
"-DGIT_BIN=${GIT}"
|
|
|
|
"-DOPENMAMA_VERSION=${VERSION}"
|
2020-08-22 06:42:42 +08:00
|
|
|
-DWITH_EXAMPLES=OFF
|
|
|
|
-DWITH_TESTTOOLS=OFF
|
2017-11-27 07:17:02 +08:00
|
|
|
)
|
2023-03-02 02:39:14 +08:00
|
|
|
vcpkg_cmake_install()
|
2017-11-27 07:17:02 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2023-04-18 06:31:08 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/OpenMAMA)
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE
|
|
|
|
"${CURRENT_PACKAGES_DIR}/LICENSE.md"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/LICENSE.md"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/include"
|
2023-04-06 07:28:17 +08:00
|
|
|
)
|
2023-04-18 06:31:08 +08:00
|
|
|
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")
|