mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-24 19:57:55 +08:00
6563298448
* Add control and portfile for mfl port * Add mfl port * reference version better header inclusion * reference version with fmt linkage * Apply suggestions from code review Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Set ports that don't build to fail in the ci baseline * add version * Check for static linkage and add message about C++20 requirements. * add fail to ci baseline for dynamic windows builds * version update * Code review improvements - Improve warning message that the port requires a C++20 compiler - Use `version` rather than `version-string` in manifest - Use `"supports": "static"` in manifest instead of setting dynamic builds to `fail` in ci baseline. * update version Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
25 lines
729 B
CMake
25 lines
729 B
CMake
if(VCPKG_TARGET_IS_WINDOWS)
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
endif()
|
|
|
|
message(WARNING "${PORT} is a C++20 library and requires a corresponding compiler. GCC 10, Clang 10 and MSVC 2019 16.8 are known to work.")
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO cpp-niel/mfl
|
|
REF v0.0.1
|
|
SHA512 a609b4ff23a01e9f9d9bf60bfa6e0b2346b054cf0c27e74e6da574dcfd2a6ead30dcb8464cf03cae2bb9995f15f01ffda5f862c0ec2744a9ad38b856ff27f073
|
|
HEAD_REF master
|
|
)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/mfl)
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|