summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-09-26 07:53:56 +0200
committerCarl Hetherington <cth@carlh.net>2022-09-26 07:53:56 +0200
commit5bc0f9a0e433e344e269411d20a106c65841b423 (patch)
tree2c396fdff4907ba8e325213a2247a1742090abc3
parentdbf2fbd90051f646ed827505ed1523f9449373f5 (diff)
Fix build on older boosts.
-rw-r--r--test/subtitle_font_id_test.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/subtitle_font_id_test.cc b/test/subtitle_font_id_test.cc
index 658d970e1..b55562c22 100644
--- a/test/subtitle_font_id_test.cc
+++ b/test/subtitle_font_id_test.cc
@@ -154,7 +154,11 @@ BOOST_AUTO_TEST_CASE(make_dcp_with_subs_in_dcp_without_font_tag)
/* Graft in some bad subs with no <Font> tag */
auto source_subtitle_file = subtitle_file(source);
+#if BOOST_VERSION >= 107400
boost::filesystem::copy_file("test/data/no_font.xml", source_subtitle_file, boost::filesystem::copy_options::overwrite_existing);
+#else
+ boost::filesystem::copy_file("test/data/no_font.xml", source_subtitle_file, boost::filesystem::copy_option::overwrite_existing);
+#endif
/* Fix the <Id> tag */
{