summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelsid <elsid.mail@gmail.com>2022-06-08 10:32:52 +0200
committerelsid <elsid.mail@gmail.com>2022-06-08 10:40:26 +0200
commit4dc3355883cd85e68a6a86973a58a8da086965fe (patch)
tree18dcfc4cc2416466934d95645838640f5f3e09af
parent598312e3912707d2c2ac08eb2d936b00973a4108 (diff)
Fix build on macosfix_macos
std::filesystem::system_complete is not a part of the C++ standard.
-rw-r--r--apps/openmw/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/openmw/main.cpp b/apps/openmw/main.cpp
index 730342cacb..ab20db8caa 100644
--- a/apps/openmw/main.cpp
+++ b/apps/openmw/main.cpp
@@ -211,7 +211,7 @@ int runApplication(int argc, char *argv[])
Platform::init();
#ifdef __APPLE__
- std::filesystem::path binary_path = std::filesystem::system_complete(std::filesystem::path(argv[0]));
+ std::filesystem::path binary_path = std::filesystem::absolute(std::filesystem::path(argv[0]));
std::filesystem::current_path(binary_path.parent_path());
setenv("OSG_GL_TEXTURE_STORAGE", "OFF", 0);
#endif