Skip to content

Commit

Permalink
libarb is has been rolled into libflint-arb. CMakeFileList.txt needs …
Browse files Browse the repository at this point in the history
…to be updated.

Fixes #311
A quick workaround so that we can compile with flint/arb
  • Loading branch information
chen1088 committed Nov 1, 2024
1 parent 805ff40 commit 3535d5b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,8 @@ endif()
# Optional dependency on Arb.
if(MPPP_WITH_ARB)
find_package(mp++_FLINT REQUIRED)
find_package(mp++_Arb REQUIRED)
# ARB has been merged into FLINT.
# find_package(mp++_Arb REQUIRED)

# Check support for certain Arb functions.
set(CMAKE_REQUIRED_INCLUDES "${MPPP_ARB_INCLUDE_DIR}")
Expand All @@ -374,7 +375,8 @@ if(MPPP_WITH_ARB)
unset(CMAKE_REQUIRED_INCLUDES)
unset(CMAKE_REQUIRED_LIBRARIES)

target_link_libraries(mp++ PRIVATE mp++::Arb mp++::FLINT)
#target_link_libraries(mp++ PRIVATE mp++::Arb mp++::FLINT)
target_link_libraries(mp++ PRIVATE mp++::FLINT)
set(MPPP_ENABLE_ARB "#define MPPP_WITH_ARB")
endif()

Expand Down
10 changes: 5 additions & 5 deletions src/detail/arb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
#include <flint/flint.h>
#include <flint/fmpz.h>

#include <arb.h>
#include <arb_hypgeom.h>
#include <arf.h>
#include <mag.h>
#include <flint/arb.h>
#include <flint/arb_hypgeom.h>
#include <flint/arf.h>
#include <flint/mag.h>

#if defined(MPPP_WITH_MPC)

#include <acb.h>
#include <flint/acb.h>

#endif

Expand Down

0 comments on commit 3535d5b

Please sign in to comment.