diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/flint/fix-cmakelists.patch | |
Diffstat (limited to 'vcpkg/ports/flint/fix-cmakelists.patch')
| -rw-r--r-- | vcpkg/ports/flint/fix-cmakelists.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/vcpkg/ports/flint/fix-cmakelists.patch b/vcpkg/ports/flint/fix-cmakelists.patch new file mode 100644 index 0000000..0111a0d --- /dev/null +++ b/vcpkg/ports/flint/fix-cmakelists.patch @@ -0,0 +1,26 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 2616d06..4be28ac 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -34,10 +34,11 @@ find_package(MPFR REQUIRED) + if (WITH_NTL) + find_package(NTL REQUIRED) + endif() +-find_package(PythonInterp REQUIRED) + ++if(WITH_CBLAS) + find_package(CBLAS) + set(FLINT_USES_BLAS ${CBLAS_FOUND}) ++endif() + + if(CMAKE_BUILD_TYPE STREQUAL Debug) + set(FLINT_WANT_ASSERT ON) +@@ -47,6 +48,8 @@ endif() + + if(MSVC) + find_package(PThreads REQUIRED) ++ set(PThreads_LIBRARIES ${PThreads4W_LIBRARY}) ++ set(PThreads_INCLUDE_DIRS ${PThreads4W_INCLUDE_DIR}) + set(FLINT_USES_PTHREAD ON CACHE BOOL "Use POSIX Threads.") + else() + option(CMAKE_THREAD_PREFER_PTHREAD "Prefer pthreads" yes) |