Cleanup: rename _empty_condition -> _schedule_condition
[dcpomatic.git] / test / subtitle_font_id_test.cc
index 658d970e1e38b2dcc50fc054253728971a4af4e7..95fd9da083709876ad41a9437ecf42f315b7c9ef 100644 (file)
@@ -24,6 +24,7 @@
 #include "lib/film.h"
 #include "lib/font.h"
 #include "lib/text_content.h"
+#include "lib/util.h"
 #include <dcp/cpl.h>
 #include <dcp/dcp.h>
 #include <dcp/reel.h>
@@ -154,7 +155,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_if_exists);
+#endif
 
        /* Fix the <Id> tag */
        {