summaryrefslogtreecommitdiff
path: root/math/clad/files/patch-CMakeLists.txt
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2024-02-11 23:55:43 -0800
committerYuri Victorovich <yuri@FreeBSD.org>2024-02-11 23:56:28 -0800
commite6f347954812fa66e2c42f826f0a312fb39c590f (patch)
treedef10917acb16ca3e847b0f5285441e2c7b6004a /math/clad/files/patch-CMakeLists.txt
parentmultimedia/kew: update 2.2-2 → 2.3 (diff)
math/clad: update 1.2 → 1.3
Reported by: portscout
Diffstat (limited to 'math/clad/files/patch-CMakeLists.txt')
-rw-r--r--math/clad/files/patch-CMakeLists.txt18
1 files changed, 8 insertions, 10 deletions
diff --git a/math/clad/files/patch-CMakeLists.txt b/math/clad/files/patch-CMakeLists.txt
index 5bd87e30404d..de5157e27767 100644
--- a/math/clad/files/patch-CMakeLists.txt
+++ b/math/clad/files/patch-CMakeLists.txt
@@ -1,18 +1,16 @@
---- CMakeLists.txt.orig 2023-07-19 08:50:39 UTC
+--- CMakeLists.txt.orig 2024-02-11 18:10:50 UTC
+++ CMakeLists.txt
-@@ -299,9 +299,13 @@ if (CLAD_INCLUDE_DOCS)
- endif()
+@@ -313,10 +313,14 @@ if (NOT CLAD_BUILD_STATIC_ONLY)
+ # Filter some unsupported flags by clang.
+ string(REPLACE "-fno-lifetime-dse" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
- if (NOT CLAD_BUILD_STATIC_ONLY)
-- add_subdirectory(test)
-- add_subdirectory(demos/ErrorEstimation/CustomModel)
-- add_subdirectory(demos/ErrorEstimation/PrintModel)
+ if (FREEBSD_BUILD_TESTS)
-+ add_subdirectory(test)
+ add_subdirectory(unittests)
+ add_subdirectory(test)
+ endif()
+ if (FREEBSD_BUILD_DEMOS)
-+ add_subdirectory(demos/ErrorEstimation/CustomModel)
-+ add_subdirectory(demos/ErrorEstimation/PrintModel)
+ add_subdirectory(demos/ErrorEstimation/CustomModel)
+ add_subdirectory(demos/ErrorEstimation/PrintModel)
+ endif()
# Add benchmarking infrastructure.