vcpkg/ports/openmama/portfile.cmake

37 lines
1.0 KiB
CMake
Raw Normal View History

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO finos/OpenMAMA
2023-04-18 06:31:08 +08:00
REF "OpenMAMA-${VERSION}-release"
SHA512 bf6a9343546ace80b8a72072f97aa85988a3d0d047e2a60d05de638afce89b4e4f2bcae28b8e93ca808e8c0e4a83de9035ff785f69f9b4ac4ccd2616e792fa08
HEAD_REF next
2023-04-18 06:31:08 +08:00
PATCHES
git-no-tags.diff
fix-dependencies.diff
)
2023-04-18 06:31:08 +08:00
vcpkg_find_acquire_program(FLEX)
vcpkg_find_acquire_program(GIT)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
"-DOPENMAMA_DEPENDENCY_ROOT=${CURRENT_INSTALLED_DIR}"
-DINSTALL_RUNTIME_DEPENDENCIES=OFF
2023-04-18 06:31:08 +08:00
"-DFLEX_EXECUTABLE=${FLEX}"
"-DGIT_BIN=${GIT}"
"-DOPENMAMA_VERSION=${VERSION}"
-DWITH_EXAMPLES=OFF
-DWITH_TESTTOOLS=OFF
)
vcpkg_cmake_install()
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-18 06:31:08 +08:00
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")