summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2023-07-25 18:17:24 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2023-07-29 13:35:20 (GMT)
commitd718262faa262dc2fdaf67294b224743b86c40d0 (patch)
tree60d5be7cc0ebf7a5a225c34988e2d7a80e9a86c5 /Source/cmTarget.cxx
parent1d4a013dd12255f0922aecee5b7b8a2cb7ec9597 (diff)
downloadCMake-d718262faa262dc2fdaf67294b224743b86c40d0.zip
CMake-d718262faa262dc2fdaf67294b224743b86c40d0.tar.gz
CMake-d718262faa262dc2fdaf67294b224743b86c40d0.tar.bz2
cmTarget: handle `HIP_STANDARD` like other language standards
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index 76a14b8..593a019 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -2423,6 +2423,7 @@ cmValue cmTarget::GetProperty(const std::string& prop) const
propC_STANDARD,
propCXX_STANDARD,
propCUDA_STANDARD,
+ propHIP_STANDARD,
propOBJC_STANDARD,
propOBJCXX_STANDARD,
propLINK_LIBRARIES,
@@ -2447,8 +2448,8 @@ cmValue cmTarget::GetProperty(const std::string& prop) const
};
if (specialProps.count(prop)) {
if (prop == propC_STANDARD || prop == propCXX_STANDARD ||
- prop == propCUDA_STANDARD || prop == propOBJC_STANDARD ||
- prop == propOBJCXX_STANDARD) {
+ prop == propCUDA_STANDARD || prop == propHIP_STANDARD ||
+ prop == propOBJC_STANDARD || prop == propOBJCXX_STANDARD) {
auto propertyIter = this->impl->LanguageStandardProperties.find(prop);
if (propertyIter == this->impl->LanguageStandardProperties.end()) {
return nullptr;