aboutsummaryrefslogtreecommitdiff
path: root/science/arbor/files/patch-CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'science/arbor/files/patch-CMakeLists.txt')
-rw-r--r--science/arbor/files/patch-CMakeLists.txt23
1 files changed, 14 insertions, 9 deletions
diff --git a/science/arbor/files/patch-CMakeLists.txt b/science/arbor/files/patch-CMakeLists.txt
index b813375ca016..9a056733f8ea 100644
--- a/science/arbor/files/patch-CMakeLists.txt
+++ b/science/arbor/files/patch-CMakeLists.txt
@@ -1,6 +1,6 @@
---- CMakeLists.txt.orig 2024-08-09 10:22:00 UTC
+--- CMakeLists.txt.orig 2025-04-24 10:33:03 UTC
+++ CMakeLists.txt
-@@ -40,7 +40,7 @@ check_cxx_compiler_flag("-march=native" CXX_HAS_NATIVE
+@@ -60,7 +60,7 @@ check_cxx_compiler_flag("-march=native" CXX_HAS_NATIVE
# Specify target architecture.
check_cxx_compiler_flag("-march=native" CXX_HAS_NATIVE)
@@ -9,11 +9,16 @@
set(ARB_DEFAULT_ARCH "native")
else()
set(ARB_DEFAULT_ARCH "none")
-@@ -307,7 +307,6 @@ install(TARGETS ext-units EXPORT arbor-targets)
- install(TARGETS ext-random123 EXPORT arbor-targets)
- target_link_libraries(arbor-public-deps INTERFACE ext-units)
- install(TARGETS ext-units EXPORT arbor-targets)
--install(TARGETS units compile_flags_target EXPORT arbor-targets)
+@@ -302,11 +302,7 @@ install(TARGETS ext-hwloc EXPORT arbor-targets)
+ endif()
+ install(TARGETS ext-hwloc EXPORT arbor-targets)
- # Keep track of packages we need to add to the generated CMake config
- # file for arbor.
+-CPMFindPackage(NAME json
+- GITHUB_REPOSITORY nlohmann/json
+- VERSION 3.12.0
+- OPTIONS "CMAKE_SUPPRESS_DEVELOPER_WARNINGS ON")
+-install(TARGETS nlohmann_json EXPORT arbor-targets)
++find_package(nlohmann_json REQUIRED)
+
+ add_library(ext-random123 INTERFACE)
+ CPMFindPackage(NAME random123