Fix experimental message
MODIFY
src/vcpkg/vcpkgpaths.cpp
src/vcpkg/vcpkgpaths.cpp
@@ -379,6 +379,9 @@ namespace vcpkg
vcpkg::Optional<Json::Object> configuration_from_manifest;
if (auto manifest = m_pimpl->m_manifest_doc.get())
+ {
+ auto manifest_obj = manifest->first;
+ if (auto config_obj = manifest_obj.get("vcpkg-configuration"))
{
print2(Color::warning,
"Embedding `vcpkg-configuration` in a manifest file is an EXPERIMENTAL feature.\n"
@@ -386,9 +389,6 @@ namespace vcpkg
m_pimpl->m_manifest_path,
"\n");
- auto manifest_obj = manifest->first;
- if (auto config_obj = manifest_obj.get("vcpkg-configuration"))
- {
if (!config_obj->is_object())
{
print2(Color::error,

Fix experimental message (#252)