aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/vcpkg-test/util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'toolsrc/src/vcpkg-test/util.cpp')
-rw-r--r--toolsrc/src/vcpkg-test/util.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/toolsrc/src/vcpkg-test/util.cpp b/toolsrc/src/vcpkg-test/util.cpp
index ce38e62e4..c0b898145 100644
--- a/toolsrc/src/vcpkg-test/util.cpp
+++ b/toolsrc/src/vcpkg-test/util.cpp
@@ -155,9 +155,12 @@ namespace vcpkg::Test
#endif
}
- const static fs::path BASE_TEMPORARY_DIRECTORY = internal_base_temporary_directory();
- const fs::path& base_temporary_directory() noexcept { return BASE_TEMPORARY_DIRECTORY; }
+ const fs::path& base_temporary_directory() noexcept
+ {
+ const static fs::path BASE_TEMPORARY_DIRECTORY = internal_base_temporary_directory();
+ return BASE_TEMPORARY_DIRECTORY;
+ }
#if FILESYSTEM_SYMLINK == FILESYSTEM_SYMLINK_NONE
constexpr char no_filesystem_message[] =