1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

fix boost

This commit is contained in:
Laserlicht 2024-11-05 02:00:26 +01:00 committed by GitHub
parent 42059d18c3
commit 10da13729c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -131,7 +131,11 @@ void ChroniclesExtractor::createBaseMod() const
if(boost::filesystem::exists(file)) if(boost::filesystem::exists(file))
{ {
boost::filesystem::create_directories(destFolder); boost::filesystem::create_directories(destFolder);
#if BOOST_VERSION >= 107400
boost::filesystem::copy_file(file, destFolder / "portraitsChronicles.json", boost::filesystem::copy_options::overwrite_existing); boost::filesystem::copy_file(file, destFolder / "portraitsChronicles.json", boost::filesystem::copy_options::overwrite_existing);
#else
boost::filesystem::copy_file(file, destFolder / "portraitsChronicles.json", boost::filesystem::copy_option::overwrite_if_exists);
#endif
} }
} }
} }