mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
@@ -2,6 +2,8 @@
|
||||
file Copyright.txt or https://cmake.org/licensing for details. */
|
||||
#pragma once
|
||||
|
||||
#include <cm/optional>
|
||||
|
||||
#include "cmStringAlgorithms.h"
|
||||
#include "cmSystemTools.h"
|
||||
|
||||
@@ -250,6 +252,15 @@ private:
|
||||
return true;
|
||||
};
|
||||
}
|
||||
|
||||
static std::function<bool(const std::string&, CallState...)>
|
||||
generateSetToValue(cm::optional<std::string>& value1)
|
||||
{
|
||||
return [&value1](const std::string& arg, CallState&&...) -> bool {
|
||||
value1 = arg;
|
||||
return true;
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
std::string extract_single_value(std::string const& input,
|
||||
|
||||
Reference in New Issue
Block a user