Skip to content

Commit

Permalink
build mpfi/mpfr on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
edocevoli committed Mar 9, 2024
1 parent 1b6f3aa commit ab991cd
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Libraries/3rd/mpfi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ set(public_include_directories
${CMAKE_CURRENT_BINARY_DIR}/include
)

set(HAVE_MPFR_Z_DIV 1)
set(HAVE_MPFR_Z_SUB 1)
set(MPFR_Q_SUB 1)
set(HAVE_STDARG 1)

configure_file(
Expand Down
2 changes: 2 additions & 0 deletions Libraries/3rd/mpfi/static/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
## unlimited permission to copy and/or distribute it, with or
## without modifications, as long as this notice is preserved.

set(CMAKE_POSITION_INDEPENDENT_CODE ON)

add_library(${mpfi_lib_name} STATIC ${mpfi_sources})

set_property(TARGET ${mpfi_lib_name} PROPERTY FOLDER ${MIKTEX_CURRENT_FOLDER})
Expand Down
1 change: 1 addition & 0 deletions Libraries/3rd/mpfr/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ set(MIKTEX_CURRENT_FOLDER "${MIKTEX_IDE_3RD_LIBRARIES_FOLDER}/mpfr")

include_directories(BEFORE
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/source/src
)

set(public_include_directories
Expand Down
2 changes: 2 additions & 0 deletions Libraries/3rd/mpfr/static/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
## unlimited permission to copy and/or distribute it, with or
## without modifications, as long as this notice is preserved.

set(CMAKE_POSITION_INDEPENDENT_CODE ON)

add_library(${mpfr_lib_name} STATIC ${mpfr_sources})

set_property(TARGET ${mpfr_lib_name} PROPERTY FOLDER ${MIKTEX_CURRENT_FOLDER})
Expand Down

0 comments on commit ab991cd

Please sign in to comment.