Skip to content

Commit 6f0e643

Browse files
authored
precice: fix boost linkage for 2.3.0 (spack#2512)
Co-authored-by: fsimonis <fsimonis@users.noreply.github.com>
1 parent f905a6d commit 6f0e643

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
--- a/CMakeLists.txt
2+
+++ b/CMakeLists.txt
3+
@@ -270 +270 @@ set_target_properties(precice PROPERTIES
4+
-target_compile_definitions(precice PRIVATE BOOST_ALL_DYN_LINK BOOST_ASIO_ENABLE_OLD_SERVICES BOOST_GEOMETRY_DISABLE_DEPRECATED_03_WARNING)
5+
+target_compile_definitions(precice PRIVATE BOOST_ALL_DYN_LINK BOOST_ASIO_ENABLE_OLD_SERVICES BOOST_GEOMETRY_DISABLE_DEPRECATED_03_WARNING BOOST_ERROR_CODE_HEADER_ONLY)
6+

repos/spack_repo/builtin/packages/precice/package.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@ class Precice(CMakePackage):
131131
when="@2.0",
132132
sha256="4017a89e4f77f623807a6cd057d9a095788879310f1bddd98837920d252b1ac7",
133133
)
134+
# Fixes linking to boost system by using BOOST_ERROR_CODE_HEADER_ONLY
135+
patch(
136+
"boost-system-header-only.patch",
137+
when="@2.3.0",
138+
sha256="6a38783eec984a59991f0895d411212e0ba1ebd2ec2c8f53f962df8facbc0344",
139+
)
134140

135141
def xsdk_tpl_args(self):
136142
return [

0 commit comments

Comments
 (0)