Skip to content

Commit

Permalink
mpir
Browse files Browse the repository at this point in the history
  • Loading branch information
battlmonstr committed May 26, 2023
1 parent 563cabc commit 3d67485
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmake/conan.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ include("${CMAKE_SOURCE_DIR}/third_party/cmake-conan/conan.cmake")
# provide a static conanfile.txt instead of generating it with conan_cmake_configure()
file(COPY "${CMAKE_SOURCE_DIR}/conanfile.txt" DESTINATION "${CONAN_BINARY_DIR}")

# use mpir instead of gmp on Windows
if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows")
file(READ "${CONAN_BINARY_DIR}/conanfile.txt" conanfile_contents)
string(REPLACE "gmp/6.2.1" "mpir/3.0.0" conanfile_contents "${conanfile_contents}")
file(WRITE "${CONAN_BINARY_DIR}/conanfile.txt" "${conanfile_contents}")
endif()

if(NOT DEFINED CONAN_PROFILE)
guess_conan_profile()
endif()
Expand Down

0 comments on commit 3d67485

Please sign in to comment.