| Server IP : 82.208.35.60 / Your IP : 216.73.216.238 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/math/ambit/files/ |
Upload File : |
--- CMakeLists.txt.orig 2022-03-26 22:14:15 UTC
+++ CMakeLists.txt
@@ -99,7 +99,7 @@ find_package (TargetLAPACK REQUIRED)
# Python Detection
set(Python_ADDITIONAL_VERSIONS 3.10 3.9 3.8 3.7) # adjust with CMake minimum FindPythonInterp
-find_package(Python 3.7 COMPONENTS Interpreter Development NumPy REQUIRED)
+find_package(Python 3.7 COMPONENTS Interpreter Development REQUIRED)
message(STATUS "Found Python ${Python_VERSION_MAJOR}.${Python_VERSION_MINOR}: ${Python_EXECUTABLE} (found version ${Python_VERSION})")
#if (NOT ENABLE_STATIC AND NOT ENABLE_PSI4)
@@ -149,7 +149,9 @@ endif()
#endif()
# library directory
+if (FREEBSD_BUILD_PYTHON_BINDING)
add_subdirectory(lib)
+endif()
# include directory (for installation)
add_subdirectory(include)
@@ -157,7 +159,7 @@ add_subdirectory(include)
# recursively add source directories
add_subdirectory(src)
-#if (NOT ENABLE_PSI4)
+if (ENABLE_TESTS)
# test suite
enable_testing()
include(CTest)
@@ -165,7 +167,7 @@ add_subdirectory(src)
# sample suite
add_subdirectory(samples)
-#endif()
+endif()
# Add all targets to the build-tree export set