blob: 0111a0dd30c7a06a9821756d0ba561cfd7d39877 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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)
|