diff options
| -rw-r--r-- | ports/mpfr/portfile.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ports/mpfr/portfile.cmake b/ports/mpfr/portfile.cmake index 0e82d2623..bd15515b3 100644 --- a/ports/mpfr/portfile.cmake +++ b/ports/mpfr/portfile.cmake @@ -10,6 +10,11 @@ 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) +# Prepend stdint to the mpfr header +file(READ "${SOURCE_PATH}/mpfr.h" _contents) +string(CONCAT _contents "#include \"stdint.h\"\n" ${_contents}) +file(READ "${SOURCE_PATH}/mpfr.h" ${_contents}) + vcpkg_configure_cmake( SOURCE_PATH ${SOURCE_PATH} ) |
