Fix internal header include paths. (#1011)

The extra leading `"CLI/"` part of include directives prevents the
inclusion of `CLI.hpp` from a relative directory without an extra `-I`
or `/I` compiler directive, and makes it harder to make CLI11 part of a
larger codebase.

This is a regression of #475.
This commit is contained in:
Sam Hocevar
2024-03-11 16:35:13 +01:00
committed by GitHub
parent e822d62249
commit ffd11bfc01
11 changed files with 21 additions and 21 deletions

View File

@@ -11,7 +11,7 @@
#include <vector>
// [CLI11:public_includes:end]
#include <CLI/Macros.hpp>
#include "Macros.hpp"
namespace CLI {
// [CLI11:argv_hpp:verbatim]

View File

@@ -6,7 +6,7 @@
#pragma once
#include <CLI/Macros.hpp>
#include "Macros.hpp"
// [CLI11:public_includes:set]
#include <string>

View File

@@ -7,10 +7,10 @@
#pragma once
// This include is only needed for IDEs to discover symbols
#include <CLI/App.hpp>
#include "../App.hpp"
#include <CLI/Argv.hpp>
#include <CLI/Encoding.hpp>
#include "../Argv.hpp"
#include "../Encoding.hpp"
// [CLI11:public_includes:set]
#include <algorithm>

View File

@@ -7,9 +7,9 @@
#pragma once
// This include is only needed for IDEs to discover symbols
#include <CLI/Argv.hpp>
#include "../Argv.hpp"
#include <CLI/Encoding.hpp>
#include "../Encoding.hpp"
// [CLI11:public_includes:set]
#include <algorithm>

View File

@@ -7,7 +7,7 @@
#pragma once
// This include is only needed for IDEs to discover symbols
#include <CLI/Config.hpp>
#include "../Config.hpp"
// [CLI11:public_includes:set]
#include <algorithm>

View File

@@ -7,8 +7,8 @@
#pragma once
// This include is only needed for IDEs to discover symbols
#include <CLI/Encoding.hpp>
#include <CLI/Macros.hpp>
#include "../Encoding.hpp"
#include "../Macros.hpp"
// [CLI11:public_includes:set]
#include <array>

View File

@@ -7,7 +7,7 @@
#pragma once
// This include is only needed for IDEs to discover symbols
#include <CLI/Formatter.hpp>
#include "../Formatter.hpp"
// [CLI11:public_includes:set]
#include <algorithm>

View File

@@ -7,7 +7,7 @@
#pragma once
// This include is only needed for IDEs to discover symbols
#include <CLI/Option.hpp>
#include "../Option.hpp"
// [CLI11:public_includes:set]
#include <algorithm>

View File

@@ -7,7 +7,7 @@
#pragma once
// This include is only needed for IDEs to discover symbols
#include <CLI/Split.hpp>
#include "../Split.hpp"
// [CLI11:public_includes:set]
#include <string>
@@ -16,8 +16,8 @@
#include <vector>
// [CLI11:public_includes:end]
#include <CLI/Error.hpp>
#include <CLI/StringTools.hpp>
#include "../Error.hpp"
#include "../StringTools.hpp"
namespace CLI {
// [CLI11:split_inl_hpp:verbatim]

View File

@@ -7,7 +7,7 @@
#pragma once
// This include is only needed for IDEs to discover symbols
#include <CLI/StringTools.hpp>
#include "../StringTools.hpp"
// [CLI11:public_includes:set]
#include <cstdint>

View File

@@ -6,12 +6,12 @@
#pragma once
#include <CLI/Validators.hpp>
#include "../Validators.hpp"
#include <CLI/Encoding.hpp>
#include <CLI/Macros.hpp>
#include <CLI/StringTools.hpp>
#include <CLI/TypeTools.hpp>
#include "../Encoding.hpp"
#include "../Macros.hpp"
#include "../StringTools.hpp"
#include "../TypeTools.hpp"
// [CLI11:public_includes:set]
#include <map>