1 set(VCPKG_POLICY_ALLOW_OBSOLETE_MSVCRT enabled)
3 vcpkg_from_git(OUT_SOURCE_PATH SOURCE_PATH
4 URL https://github.com/tqfx/${PORT}
9 vcpkg_check_features(OUT_FEATURE_OPTIONS OPTIONS_RELEASE
13 vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
15 pkgconfig LIBA_PKGCONFIG
21 string(REGEX REPLACE "FLOAT=([^;]+)" "FLOAT=4"
22 FEATURE_OPTIONS "${FEATURE_OPTIONS}"
25 string(REGEX REPLACE "FLOAT=([^;]+)" "FLOAT=8"
26 FEATURE_OPTIONS "${FEATURE_OPTIONS}"
30 vcpkg_cmake_configure(SOURCE_PATH ${SOURCE_PATH}
31 OPTIONS -DBUILD_TESTING=OFF ${FEATURE_OPTIONS}
32 OPTIONS_RELEASE ${OPTIONS_RELEASE}
40 vcpkg_fixup_pkgconfig()
43 vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
45 file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
47 if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
48 file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
51 file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)