Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions M2/cmake/build-libraries.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -415,10 +415,17 @@ ExternalProject_Add(build-factory
TEST_EXCLUDE_FROM_MAIN ON
STEP_TARGETS install test
)
if(GFTABLESDIR AND NOT EXISTS ${M2_DIST_PREFIX}/${M2_INSTALL_DATADIR}/Core/factory/gftables)
# Copy again when GFTABLESDIR moves, so that building factory ourselves replaces
# the tables copied from the version already on the system.
set(GFTABLES_DEST ${M2_DIST_PREFIX}/${M2_INSTALL_DATADIR}/Core/factory)
if(GFTABLESDIR AND (NOT EXISTS ${GFTABLES_DEST}/gftables
OR NOT "${GFTABLESDIR}" STREQUAL "${GFTABLES_COPIED_FROM}"))
message(STATUS "Copying gftables from ${GFTABLESDIR}/gftables")
file(COPY ${GFTABLESDIR}/gftables
DESTINATION ${M2_DIST_PREFIX}/${M2_INSTALL_DATADIR}/Core/factory FOLLOW_SYMLINK_CHAIN)
# clear the previous copy first; file(COPY) skips files whose timestamps match
file(REMOVE_RECURSE ${GFTABLES_DEST}/gftables)
file(COPY ${GFTABLESDIR}/gftables DESTINATION ${GFTABLES_DEST} FOLLOW_SYMLINK_CHAIN)
set(GFTABLES_COPIED_FROM "${GFTABLESDIR}"
CACHE INTERNAL "directory the distributed gftables were copied from")
endif()
_ADD_COMPONENT_DEPENDENCY(libraries factory "gmp;ntl;flint" FACTORY_FOUND)

Expand Down
18 changes: 14 additions & 4 deletions M2/cmake/check-libraries.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,20 @@ find_package(GMP 6.0.0 REQUIRED)
# givaro prime field and algebraic computations (needs gmp)
# fflas_ffpack Finite Field Linear Algebra Routines (needs gmp, givaro + LAPACK)

set(LIBRARY_OPTIONS
Eigen3 BDWGC MPFR MPFI NTL Flint Factory Frobby cddlib MPSolve
GTest GLPK Givaro FFLAS_FFPACK Normaliz)

# A cached <Package>_DIR outranks CMAKE_PREFIX_PATH, so drop it for anything we
# intend to build ourselves before searching for it below.
string(TOUPPER "${BUILD_LIBRARIES}" BUILD_LIBRARIES)
foreach(_library IN LISTS LIBRARY_OPTIONS)
string(TOUPPER "${_library}" _name)
if(BUILD_LIBRARIES MATCHES "(ALL|ON)" OR "${_name}" IN_LIST BUILD_LIBRARIES)
unset(${_library}_DIR CACHE)
endif()
endforeach()

# Prior to 3.4.1, find_package for Eigen3 doesn't support version ranges
# but Ubuntu only has 3.4.0 right now, so we should support it
# For Eigen 5.0 and later, the way the version checking is setup, specifying
Expand Down Expand Up @@ -180,10 +194,6 @@ pkg_search_module(FFLAS_FFPACK IMPORTED_TARGET fflas-ffpack>=2.4.3)
pkg_search_module(GIVARO IMPORTED_TARGET givaro>=4.1.1)
# TODO: add FindModules for these two as well

set(LIBRARY_OPTIONS
Eigen3 BDWGC MPFR MPFI NTL Flint Factory Frobby cddlib MPSolve
GTest GLPK Givaro FFLAS_FFPACK Normaliz)

###############################################################################
## Optional libraries:
# LibXML2 libxml2-dev libxml2-devel N/A
Expand Down
2 changes: 1 addition & 1 deletion M2/libraries/gtest/Makefile.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
SUBMODULE = true
LIBNAME = googletest
URL = https://github.com/google/googletest
VERSION = 1.16.0
VERSION = 1.18.0
CONFIGURECMD = cmake . -DCMAKE_INSTALL_PREFIX=$(PREFIX) -DBUILD_GMOCK=OFF \
-DCMAKE_INSTALL_LIBDIR=lib

Expand Down
2 changes: 1 addition & 1 deletion M2/submodules/googletest
Submodule googletest updated 96 files
+18 −5 BUILD.bazel
+2 −2 CMakeLists.txt
+10 −6 MODULE.bazel
+13 −21 README.md
+17 −12 WORKSPACE
+104 −62 ci/linux-presubmit.sh
+21 −5 ci/macos-presubmit.sh
+40 −14 ci/windows-presubmit.bat
+7 −7 docs/_layouts/default.html
+47 −17 docs/advanced.md
+0 −13 docs/faq.md
+2 −2 docs/gmock_cheat_sheet.md
+107 −37 docs/gmock_cook_book.md
+8 −8 docs/quickstart-bazel.md
+3 −3 docs/quickstart-cmake.md
+4 −3 docs/reference/actions.md
+53 −5 docs/reference/matchers.md
+98 −1 docs/reference/testing.md
+2 −2 googlemock/CMakeLists.txt
+115 −65 googlemock/include/gmock/gmock-actions.h
+2 −2 googlemock/include/gmock/gmock-cardinalities.h
+627 −226 googlemock/include/gmock/gmock-matchers.h
+4 −5 googlemock/include/gmock/gmock-more-actions.h
+14 −1 googlemock/include/gmock/gmock-more-matchers.h
+9 −9 googlemock/include/gmock/gmock-nice-strict.h
+16 −11 googlemock/include/gmock/gmock-spec-builders.h
+39 −27 googlemock/include/gmock/internal/gmock-internal-utils.h
+3 −3 googlemock/include/gmock/internal/gmock-port.h
+121 −21 googlemock/include/gmock/internal/gmock-pp.h
+2 −2 googlemock/src/gmock-internal-utils.cc
+17 −17 googlemock/src/gmock-spec-builders.cc
+1 −0 googlemock/test/BUILD.bazel
+112 −104 googlemock/test/gmock-actions_test.cc
+6 −6 googlemock/test/gmock-cardinalities_test.cc
+153 −12 googlemock/test/gmock-function-mocker_test.cc
+2 −2 googlemock/test/gmock-internal-utils_test.cc
+188 −5 googlemock/test/gmock-matchers-arithmetic_test.cc
+145 −54 googlemock/test/gmock-matchers-comparisons_test.cc
+379 −16 googlemock/test/gmock-matchers-containers_test.cc
+5 −5 googlemock/test/gmock-matchers-misc_test.cc
+1 −2 googlemock/test/gmock-matchers_test.h
+60 −32 googlemock/test/gmock-more-actions_test.cc
+4 −2 googlemock/test/gmock-pp_test.cc
+8 −9 googlemock/test/gmock-spec-builders_test.cc
+6 −4 googlemock/test/gmock_link_test.h
+4 −4 googlemock/test/gmock_output_test_golden.txt
+3 −1 googlemock/test/gmock_stress_test.cc
+2 −5 googletest/CMakeLists.txt
+6 −6 googletest/README.md
+52 −26 googletest/cmake/internal_utils.cmake
+38 −9 googletest/include/gtest/gtest-assertion-result.h
+3 −3 googletest/include/gtest/gtest-death-test.h
+129 −66 googletest/include/gtest/gtest-matchers.h
+2 −2 googletest/include/gtest/gtest-message.h
+95 −39 googletest/include/gtest/gtest-param-test.h
+107 −94 googletest/include/gtest/gtest-printers.h
+2 −2 googletest/include/gtest/gtest-spi.h
+9 −8 googletest/include/gtest/gtest-test-part.h
+67 −71 googletest/include/gtest/gtest-typed-test.h
+46 −36 googletest/include/gtest/gtest.h
+18 −12 googletest/include/gtest/internal/gtest-death-test-internal.h
+1 −1 googletest/include/gtest/internal/gtest-filepath.h
+75 −73 googletest/include/gtest/internal/gtest-internal.h
+71 −34 googletest/include/gtest/internal/gtest-param-util.h
+2 −0 googletest/include/gtest/internal/gtest-port-arch.h
+152 −273 googletest/include/gtest/internal/gtest-port.h
+2 −2 googletest/include/gtest/internal/gtest-string.h
+3 −1 googletest/samples/sample2_unittest.cc
+10 −9 googletest/src/gtest-internal-inl.h
+0 −2 googletest/src/gtest-matchers.cc
+34 −15 googletest/src/gtest-port.cc
+11 −12 googletest/src/gtest-printers.cc
+5 −3 googletest/src/gtest-test-part.cc
+226 −74 googletest/src/gtest.cc
+56 −20 googletest/test/BUILD.bazel
+9 −0 googletest/test/custom/gmock_dynamic_cast_message_test.proto
+1 −0 googletest/test/googletest-color-test.py
+3 −1 googletest/test/googletest-death-test-test.cc
+38 −0 googletest/test/googletest-fail-if-no-test-linked-test-with-disabled-test_.cc
+38 −0 googletest/test/googletest-fail-if-no-test-linked-test-with-enabled-test_.cc
+165 −0 googletest/test/googletest-fail-if-no-test-linked-test.py
+91 −0 googletest/test/googletest-fail-if-no-test-selected-test.py
+19 −0 googletest/test/googletest-filter-unittest.py
+2 −2 googletest/test/googletest-listener-test.cc
+1 −1 googletest/test/googletest-output-test-golden-lin.txt
+4 −2 googletest/test/googletest-output-test.py
+2 −1 googletest/test/googletest-output-test_.cc
+74 −6 googletest/test/googletest-param-test-test.cc
+10 −8 googletest/test/googletest-port-test.cc
+97 −25 googletest/test/googletest-printers-test.cc
+2 −2 googletest/test/googletest-setuptestsuite-test_.cc
+1 −1 googletest/test/googletest-test-part-test.cc
+12 −1 googletest/test/gtest_help_test.py
+2 −2 googletest/test/gtest_stress_test.cc
+111 −65 googletest/test/gtest_unittest.cc
+22 −6 googletest_deps.bzl
Loading