mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-22 18:47:09 +01:00
[mprf] add missing symbol (#2226)
* [mprf] create printf * Update CMakeLists.txt * [mpfr:portile] copy file
This commit is contained in:
parent
ea6783f9ba
commit
1a6d0f5611
@ -11,6 +11,7 @@ set(GMP_INCLUDE_DIRS ${GMP_INCLUDE_DIR})
|
||||
|
||||
# Sources
|
||||
set(SRCS
|
||||
src/gmp_printf.c
|
||||
src/mpfr.h
|
||||
src/mpf2mpfr.h
|
||||
src/mpfr-gmp.h
|
||||
@ -272,4 +273,4 @@ install(
|
||||
install(
|
||||
FILES src/mpfr.h
|
||||
DESTINATION "include"
|
||||
)
|
||||
)
|
||||
|
@ -1,4 +1,4 @@
|
||||
Source: mpfr
|
||||
Version: 3.1.6
|
||||
Version: 3.1.6-1
|
||||
Description: The MPFR library is a C library for multiple-precision floating-point computations with correct rounding
|
||||
Build-Depends: mpir
|
||||
|
6
ports/mpfr/gmp_printf.c
Normal file
6
ports/mpfr/gmp_printf.c
Normal file
@ -0,0 +1,6 @@
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
extern int __gmpfr_fprintf(const char *fmt, va_list argp) {
|
||||
return fprintf(stderr, fmt, argp);
|
||||
}
|
@ -8,6 +8,7 @@ vcpkg_download_distfile(ARCHIVE
|
||||
|
||||
vcpkg_extract_source_archive(${ARCHIVE})
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/gmp_printf.c DESTINATION ${SOURCE_PATH}/src)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
|
Loading…
x
Reference in New Issue
Block a user