Skip to content

Commit

Permalink
Fixed standalone compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
ariostas committed Sep 18, 2024
1 parent d5da756 commit a7e3ec3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions RecoTracker/LSTCore/standalone/code/rooutil/cxxopts.h
Original file line number Diff line number Diff line change
Expand Up @@ -226,63 +226,63 @@ namespace cxxopts {
class Option_exists_error : public OptionSpecException {
public:
Option_exists_error(const std::string& option)
: OptionSpecException(u8"Option " + LQUOTE + option + RQUOTE + u8" already exists") {}
: OptionSpecException("Option " + LQUOTE + option + RQUOTE + " already exists") {}
};

class Invalid_option_format_error : public OptionSpecException {
public:
Invalid_option_format_error(const std::string& format)
: OptionSpecException(u8"Invalid option format " + LQUOTE + format + RQUOTE) {}
: OptionSpecException("Invalid option format " + LQUOTE + format + RQUOTE) {}
};

class Option_syntax_exception : public OptionParseException {
public:
Option_syntax_exception(const std::string& text)
: OptionParseException(u8"Argument " + LQUOTE + text + RQUOTE + u8" starts with a - but has incorrect syntax") {
: OptionParseException("Argument " + LQUOTE + text + RQUOTE + " starts with a - but has incorrect syntax") {
}
};

class Option_not_exists_exception : public OptionParseException {
public:
Option_not_exists_exception(const std::string& option)
: OptionParseException(u8"Option " + LQUOTE + option + RQUOTE + u8" does not exist") {}
: OptionParseException("Option " + LQUOTE + option + RQUOTE + " does not exist") {}
};

class Missing_argument_exception : public OptionParseException {
public:
Missing_argument_exception(const std::string& option)
: OptionParseException(u8"Option " + LQUOTE + option + RQUOTE + u8" is missing an argument") {}
: OptionParseException("Option " + LQUOTE + option + RQUOTE + " is missing an argument") {}
};

class Option_requires_argument_exception : public OptionParseException {
public:
Option_requires_argument_exception(const std::string& option)
: OptionParseException(u8"Option " + LQUOTE + option + RQUOTE + u8" requires an argument") {}
: OptionParseException("Option " + LQUOTE + option + RQUOTE + " requires an argument") {}
};

class Option_not_has_argument_exception : public OptionParseException {
public:
Option_not_has_argument_exception(const std::string& option, const std::string& arg)
: OptionParseException(u8"Option " + LQUOTE + option + RQUOTE + u8" does not take an argument, but argument " +
: OptionParseException("Option " + LQUOTE + option + RQUOTE + " does not take an argument, but argument " +
LQUOTE + arg + RQUOTE + " given") {}
};

class Option_not_present_exception : public OptionParseException {
public:
Option_not_present_exception(const std::string& option)
: OptionParseException(u8"Option " + LQUOTE + option + RQUOTE + u8" not present") {}
: OptionParseException("Option " + LQUOTE + option + RQUOTE + " not present") {}
};

class Argument_incorrect_type : public OptionParseException {
public:
Argument_incorrect_type(const std::string& arg)
: OptionParseException(u8"Argument " + LQUOTE + arg + RQUOTE + u8" failed to parse") {}
: OptionParseException("Argument " + LQUOTE + arg + RQUOTE + " failed to parse") {}
};

class Option_required_exception : public OptionParseException {
public:
Option_required_exception(const std::string& option)
: OptionParseException(u8"Option " + LQUOTE + option + RQUOTE + u8" is required but not present") {}
: OptionParseException("Option " + LQUOTE + option + RQUOTE + " is required but not present") {}
};

namespace values {
Expand Down
2 changes: 1 addition & 1 deletion RecoTracker/LSTCore/standalone/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ elif [[ $ARCH == "aarch64" || $ARCH == "arm64" ]]; then
else
export SCRAM_ARCH=el8_amd64_gcc12
fi
export CMSSW_VERSION=CMSSW_14_1_0_pre5
export CMSSW_VERSION=CMSSW_14_2_0_pre1

source /cvmfs/cms.cern.ch/cmsset_default.sh
cd /cvmfs/cms.cern.ch/$SCRAM_ARCH/cms/cmssw/$CMSSW_VERSION/src
Expand Down

0 comments on commit a7e3ec3

Please sign in to comment.