CGAL stack compiles
This commit is contained in:
parent
bd3f1c6f35
commit
d29cbda09c
2 changed files with 15 additions and 2 deletions
deps
8
deps/GMP/GMP.cmake
vendored
8
deps/GMP/GMP.cmake
vendored
|
@ -36,11 +36,17 @@ else ()
|
||||||
set(_gmp_build_tgt "") # let it guess
|
set(_gmp_build_tgt "") # let it guess
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
set(_cross_compile_arg "")
|
||||||
|
if (CMAKE_CROSSCOMPILING)
|
||||||
|
# TOOLCHAIN_PREFIX should be defined in the toolchain file
|
||||||
|
set(_cross_compile_arg --host=${TOOLCHAIN_PREFIX})
|
||||||
|
endif ()
|
||||||
|
|
||||||
ExternalProject_Add(dep_GMP
|
ExternalProject_Add(dep_GMP
|
||||||
# URL https://gmplib.org/download/gmp/gmp-6.1.2.tar.bz2
|
# URL https://gmplib.org/download/gmp/gmp-6.1.2.tar.bz2
|
||||||
URL https://gmplib.org/download/gmp/gmp-6.2.1.tar.bz2
|
URL https://gmplib.org/download/gmp/gmp-6.2.1.tar.bz2
|
||||||
BUILD_IN_SOURCE ON
|
BUILD_IN_SOURCE ON
|
||||||
CONFIGURE_COMMAND env "CFLAGS=${_gmp_ccflags}" "CXXFLAGS=${_gmp_ccflags}" ./configure --enable-shared=no --enable-cxx=yes --enable-static=yes "--prefix=${DESTDIR}/usr/local" ${_gmp_build_tgt}
|
CONFIGURE_COMMAND env "CFLAGS=${_gmp_ccflags}" "CXXFLAGS=${_gmp_ccflags}" ./configure ${_cross_compile_arg} --enable-shared=no --enable-cxx=yes --enable-static=yes "--prefix=${DESTDIR}/usr/local" ${_gmp_build_tgt}
|
||||||
BUILD_COMMAND make -j
|
BUILD_COMMAND make -j
|
||||||
INSTALL_COMMAND make install
|
INSTALL_COMMAND make install
|
||||||
)
|
)
|
||||||
|
|
9
deps/MPFR/MPFR.cmake
vendored
9
deps/MPFR/MPFR.cmake
vendored
|
@ -18,10 +18,17 @@ if (MSVC)
|
||||||
add_custom_target(dep_MPFR SOURCES ${_output})
|
add_custom_target(dep_MPFR SOURCES ${_output})
|
||||||
|
|
||||||
else ()
|
else ()
|
||||||
|
|
||||||
|
set(_cross_compile_arg "")
|
||||||
|
if (CMAKE_CROSSCOMPILING)
|
||||||
|
# TOOLCHAIN_PREFIX should be defined in the toolchain file
|
||||||
|
set(_cross_compile_arg --host=${TOOLCHAIN_PREFIX})
|
||||||
|
endif ()
|
||||||
|
|
||||||
ExternalProject_Add(dep_MPFR
|
ExternalProject_Add(dep_MPFR
|
||||||
URL http://ftp.vim.org/ftp/gnu/mpfr/mpfr-3.1.6.tar.bz2 https://www.mpfr.org/mpfr-3.1.6/mpfr-3.1.6.tar.bz2 # mirrors are allowed
|
URL http://ftp.vim.org/ftp/gnu/mpfr/mpfr-3.1.6.tar.bz2 https://www.mpfr.org/mpfr-3.1.6/mpfr-3.1.6.tar.bz2 # mirrors are allowed
|
||||||
BUILD_IN_SOURCE ON
|
BUILD_IN_SOURCE ON
|
||||||
CONFIGURE_COMMAND env "CFLAGS=${_gmp_ccflags}" "CXXFLAGS=${_gmp_ccflags}" ./configure --prefix=${DESTDIR}/usr/local --enable-shared=no --enable-static=yes --with-gmp=${DESTDIR}/usr/local ${_gmp_build_tgt}
|
CONFIGURE_COMMAND env "CFLAGS=${_gmp_ccflags}" "CXXFLAGS=${_gmp_ccflags}" ./configure ${_cross_compile_arg} --prefix=${DESTDIR}/usr/local --enable-shared=no --enable-static=yes --with-gmp=${DESTDIR}/usr/local ${_gmp_build_tgt}
|
||||||
BUILD_COMMAND make -j
|
BUILD_COMMAND make -j
|
||||||
INSTALL_COMMAND make install
|
INSTALL_COMMAND make install
|
||||||
DEPENDS dep_GMP
|
DEPENDS dep_GMP
|
||||||
|
|
Loading…
Add table
Reference in a new issue