early-access version 2853
This commit is contained in:
26
externals/vcpkg/ports/flint/fix-cmakelists.patch
vendored
Executable file
26
externals/vcpkg/ports/flint/fix-cmakelists.patch
vendored
Executable file
@@ -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)
|
Reference in New Issue
Block a user