summaryrefslogtreecommitdiff
path: root/Source/cmOutputConverter.h
diff options
context:
space:
mode:
authorJiri Malak <malak.jiri@gmail.com>2023-01-24 22:12:28 +0100
committerJiri Malak <malak.jiri@gmail.com>2023-01-24 22:12:28 +0100
commita1d065e5c7f2b0bb33dc8aea6d10947e46a43abb (patch)
tree4f7dfaaa52b2b0b2f0d49d4200431500fc148025 /Source/cmOutputConverter.h
parent62483b9b99647bcec8275d7b139a64e879623fcc (diff)
downloadcmake-a1d065e5c7f2b0bb33dc8aea6d10947e46a43abb.tar.gz
Watcom: Replace WATCOMQUOTE format by UseWatcomQuote attribute
Replace WATCOMQUOTE output format by UseWatcomQuote attribute to properly handle single quote This attribute is used globaly only for Watcom linker to handle single-quote separator instead of double-quote it doesn't mean different output format only change of quoting separator It is now applied to any output form SHELL/RESPONSE/NINJAMULTI if Watcom linker is used otherwise double-quote is used
Diffstat (limited to 'Source/cmOutputConverter.h')
-rw-r--r--Source/cmOutputConverter.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/cmOutputConverter.h b/Source/cmOutputConverter.h
index 6e1bfe3653..2717bdd1c2 100644
--- a/Source/cmOutputConverter.h
+++ b/Source/cmOutputConverter.h
@@ -35,17 +35,18 @@ public:
enum OutputFormat
{
SHELL,
- WATCOMQUOTE,
NINJAMULTI,
RESPONSE
};
std::string ConvertToOutputFormat(cm::string_view source,
- OutputFormat output) const;
+ OutputFormat output,
+ bool useWatcomQuote = false) const;
std::string ConvertDirectorySeparatorsForShell(cm::string_view source) const;
//! for existing files convert to output path and short path if spaces
std::string ConvertToOutputForExisting(const std::string& remote,
- OutputFormat format = SHELL) const;
+ OutputFormat format = SHELL,
+ bool useWatcomQuote = false) const;
void SetLinkScriptShell(bool linkScriptShell);