ports/math/clad/files/patch-CMakeLists.txt
Yuri Victorovich 8a987ae789 math/clad: update 1.5 → 1.6
Reported by:	portscout
2024-07-20 01:36:51 -07:00

22 lines
758 B
Text

--- CMakeLists.txt.orig 2024-07-17 20:27:26 UTC
+++ CMakeLists.txt
@@ -321,8 +321,10 @@ if (NOT CLAD_BUILD_STATIC_ONLY)
include(GoogleBenchmark)
endif(CLAD_ENABLE_BENCHMARKS)
+ if (FREEBSD_BUILD_DEMOS)
add_subdirectory(demos/ErrorEstimation/CustomModel)
add_subdirectory(demos/ErrorEstimation/PrintModel)
+ endif()
if (NOT CLAD_DISABLE_TESTS OR CLAD_ENABLE_BENCHMARKS)
# Change the default compiler to the clang which we run clad upon. Our unittests
@@ -337,7 +339,7 @@ if (NOT CLAD_BUILD_STATIC_ONLY)
string(REPLACE "-Wno-class-memaccess" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
endif()
- if (NOT CLAD_DISABLE_TESTS)
+ if (FREEBSD_BUILD_TESTS)
add_subdirectory(unittests)
add_subdirectory(test)
endif()