diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2021-09-14 16:33:12 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2021-09-15 16:08:19 (GMT) |
commit | 8d0ae460de553afdf0a2b272a6aca01667c781da (patch) | |
tree | 8d49d1cb0854fb8890db36169c791ef95d5ed678 /Source/CTest/cmCTestGenericHandler.h | |
parent | 1375862764faad681b45e6ca99e542862e9ae62c (diff) | |
download | CMake-8d0ae460de553afdf0a2b272a6aca01667c781da.zip CMake-8d0ae460de553afdf0a2b272a6aca01667c781da.tar.gz CMake-8d0ae460de553afdf0a2b272a6aca01667c781da.tar.bz2 |
cmCTestGenericHandler::SetOption accepts cmProp or std::string
Diffstat (limited to 'Source/CTest/cmCTestGenericHandler.h')
-rw-r--r-- | Source/CTest/cmCTestGenericHandler.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestGenericHandler.h b/Source/CTest/cmCTestGenericHandler.h index 0b8b224..852d4ea 100644 --- a/Source/CTest/cmCTestGenericHandler.h +++ b/Source/CTest/cmCTestGenericHandler.h @@ -87,7 +87,17 @@ public: * as a multi-value will return nullptr. */ void SetPersistentOption(const std::string& op, const char* value); + void SetPersistentOption(const std::string& op, const std::string& value) + { + this->SetPersistentOption(op, cmProp(value)); + } + void SetPersistentOption(const std::string& op, cmProp value); void SetOption(const std::string& op, const char* value); + void SetOption(const std::string& op, const std::string& value) + { + this->SetOption(op, cmProp(value)); + } + void SetOption(const std::string& op, cmProp value); cmProp GetOption(const std::string& op); /** |