vcpkg/ports/flint/fix-cmakelists.patch
NancyLi1013 41d944f701
[getdns/flint/arb] Update to the latest version (#20050)
* [getdns/flint] Update to the latest version

* [getdns/flint] Update to the latest version

* [flint] Add unsupported on uwp

* Update version files

* [flint] Handle dllimport macro in header files

* [arb] Update to 2.21.0

* [arb] Update to 2.2.1 and use upstream CMakeLists.txt

* [arb] App patch

* Update versions/a-/arb.json
2021-11-05 16:09:43 -07:00

27 lines
730 B
Diff

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)