vcpkg/toolsrc
Stephan T. Lavavej f0902b3537 VS 2019 16.3 deprecates <experimental/filesystem>. (#6968)
VS 2019 16.3 will contain a couple of source-breaking changes:

* <experimental/filesystem> will be deprecated via an
impossible-to-miss preprocessor "#error The <experimental/filesystem>
header providing std::experimental::filesystem is deprecated by
Microsoft and will be REMOVED. It is superseded by the C++17
<filesystem> header providing std::filesystem. You can define
_SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING to acknowledge
that you have received this warning."

* <filesystem> will no longer include <experimental/filesystem>.

In the long term, I believe that vcpkg should detect when it's being
built with VS 2017 15.7 or newer, compile in C++17 mode, include
<filesystem>, and use std::filesystem. (Activating this for VS 2019 16.0
or newer would also be reasonable.) Similarly for other toolsets
supporting std::filesystem.

In the short term, this commit makes vcpkg compatible with the upcoming
deprecation. First, we need to define the silencing macro before
including the appropriate header. I've chosen to define it
unconditionally (without checking for platform or version), since it
has no effect for other platforms or versions. Second, we need to deal
with <filesystem> no longer including <experimental/filesystem>.
I verified that VS 2015 Update 3 contained <experimental/filesystem>
(back then, it simply included the <filesystem> header, where the
experimental implementation was defined; this was later reorganized).
Therefore, all of vcpkg's supported MSVC toolsets have
<experimental/filesystem>, so we can simply always include it.

I've verified that this builds with both VS 2015 Update 3 and
VS 2019 16.1.3 (the current production version).
2019-06-20 11:46:55 -07:00
..
include VS 2019 16.3 deprecates <experimental/filesystem>. (#6968) 2019-06-20 11:46:55 -07:00
src [vcpkg] Improve vcpkg::Files::Filesystem error handling (#6919) 2019-06-19 11:49:57 -07:00
vcpkg [vcxproj] Explicitly specify intermediate and output directories 2018-11-01 01:26:31 -07:00
vcpkglib [vcpkg] Synchronize vcpkg-base with external repo (#5934) 2019-04-08 23:26:18 -07:00
vcpkgmetricsuploader [vcxproj] Explicitly specify intermediate and output directories 2018-11-01 01:26:31 -07:00
vcpkgtest [vcxproj] Explicitly specify intermediate and output directories 2018-11-01 01:26:31 -07:00
.clang-format [vcpkg] Randomize topological sort in CI plans to allow concurrent builds to more efficiently interact 2019-01-22 17:11:36 -08:00
CMakeLists.txt [vcpkg] Improve vcpkg::Files::Filesystem error handling (#6919) 2019-06-19 11:49:57 -07:00
dirs.proj [vcxproj] Explicitly specify intermediate and output directories 2018-11-01 01:26:31 -07:00
vcpkg.natvis Initial addition of native visualizer, to improve debugging experience. (#3906) 2018-08-01 10:58:25 -07:00
vcpkg.sln [vcpkg-fetch] Switch back to 18.1.0; add hack in vcpkg.exe to map the hashes together. 2018-11-07 17:10:51 -08:00
VERSION.txt Update CHANGELOG and bump version to 2018.11.23 2018-11-23 14:18:46 -08:00