Skip to content

Commit 7c5329b

Browse files
committed
fix compilation
1 parent 3d931ac commit 7c5329b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/fmi4cpp/fmi2/fmu.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
using namespace fmi4cpp;
1212
using namespace fmi4cpp::fmi2;
13+
namespace fs = std::filesystem;
1314

1415
fmu::fmu(const std::filesystem::path& fmuPath, bool unzipFmu)
1516
{
@@ -27,7 +28,7 @@ fmu::fmu(const std::filesystem::path& fmuPath, bool unzipFmu)
2728
const std::string fmuName = fmuPath.stem().string();
2829
fs::path tmpPath(fs::temp_directory_path() /= fs::path("fmi4cpp_" + fmuName + "_" + generate_simple_id(8)));
2930

30-
if (!create_directories(tmpPath)) {
31+
if (!fs::create_directories(tmpPath)) {
3132
const auto err = "Failed to create temporary directory '" + tmpPath.string() + "' !";
3233
MLOG_FATAL(err);
3334
throw std::runtime_error(err);

0 commit comments

Comments
 (0)