Skip to content

Commit

Permalink
[mpir] fix compilation on macOS (microsoft#12677)
Browse files Browse the repository at this point in the history
also remove dependency on autotools
  • Loading branch information
strega-nil authored and hellozee committed Sep 11, 2020
1 parent 9d8ed6d commit 0c2eb28
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ports/mpir/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@ if(VCPKG_TARGET_IS_LINUX OR VCPKG_TARGET_IS_OSX)
endif()

set(OPTIONS --disable-silent-rules --enable-gmpcompat --enable-cxx ${SHARED_STATIC})

string(APPEND VCPKG_C_FLAGS " -Wno-implicit-function-declaration")
string(APPEND VCPKG_CXX_FLAGS " -Wno-implicit-function-declaration")

vcpkg_configure_make(
SOURCE_PATH ${SOURCE_PATH}
AUTOCONFIG
OPTIONS ${OPTIONS}
)

Expand Down Expand Up @@ -138,4 +140,4 @@ elseif(VCPKG_TARGET_IS_WINDOWS)
vcpkg_copy_pdbs()

file(INSTALL ${SOURCE_PATH}/COPYING.lib DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
endif()
endif()

0 comments on commit 0c2eb28

Please sign in to comment.